eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Annotation::JavaScriptSelector':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: JavaScriptSelector (private in Annotation

This class is only visible from within Annotation.

Inheritance:

   Object
   |
   +--Annotation
      |
      +--Annotation::JavaScriptSelector

Package:
stx:libbasic
Category:
Kernel-Extensions
Owner:
Annotation
Author:
Claus Gittinger

Description:


I define an alternative selector to be installed in the class' 
method dictionary, in order to allow for regular javaScript function names
to be used (in addition to smalltalk names).
For example, a smalltalk method named 
    foo:arg1 bar:arg2 baz:arg3 
could be annotated as foo/3 in order to be seen and callable in javascript as
    foo(arg1, arg2, arg3)


Instance protocol:

accessing
o  javaScriptSelector

o  javaScriptSelector: aSymbolOrString

testing
o  isJavaScriptSelector
true if this is a (wellknown) javascript selector annotation



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 07 Oct 2022 20:07:44 GMT