Annotation Type JSConstructor
-
@Documented @Retention(RUNTIME) @Target({CONSTRUCTOR,METHOD}) public @interface JSConstructor
An annotation that marks a Java method as JavaScript constructor. This can be used as an alternative to thejsConstructor
naming convention desribed inScriptableObject.defineClass(org.mozilla.javascript.Scriptable, java.lang.Class)
.