cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] Flow Thu Feb 6 16:00:03 2003
Date Thu, 06 Feb 2003 15:00:03 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=Flow, version: 22 on Thu Feb  6 14:24:30 2003
by 62.109.71.99

- If the method's name is "jsConstructor", the method is considered to define the body of
the constructor. Only one method of this name may be defined. If no method is found that can
serve as constructor, a Java constructor will be selected to serve as the JavaScript constructor
in the following manner. If the class has only one Java constructor, that constructor is used
to define the JavaScript constructor. If the the class has two constructors, one must be the
zero-argument constructor (otherwise an ClassDefinitionException would have already been thrown
when the prototype was to be created). In this case the Java constructor with one or more
parameters will be used to define the JavaScript constructor. If the class has three or more
constructors, an ClassDefinitionException will be thrown.
?                -----

+ If the method's is "jsConstructor", the method is considered to define the body of the constructor.
Only one method of this name may be defined. If no method is found that can serve as constructor,
a Java constructor will be selected to serve as the JavaScript constructor in the following
manner. If the class has only one Java constructor, that constructor is used to define the
JavaScript constructor. If the the class has two constructors, one must be the zero-argument
constructor (otherwise an ClassDefinitionException would have already been thrown when the
prototype was to be created). In this case the Java constructor with one or more parameters
will be used to define the JavaScript constructor. If the class has three or more constructors,
an ClassDefinitionException will be thrown.



Mime
View raw message