Annotation Interface 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 the jsConstructor naming convention described in ScriptableObject.defineClass(org.mozilla.javascript.Scriptable, java.lang.Class).