Annotation Interface JSFunction


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface JSFunction
An annotation that marks a Java method as JavaScript function. This can be used as an alternative to the jsFunction_ prefix described in ScriptableObject.defineClass(org.mozilla.javascript.Scriptable, java.lang.Class).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""