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)


Class protocol:

instance creation
o  javaScriptSelector: aSymbolOrString


Instance protocol:

accessing
o  javaScriptSelector

o  javaScriptSelector: aSymbolOrString

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



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:49:48 GMT