Annotation Interface JSGetter


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface JSGetter
An annotation that marks a Java method as JavaScript getter. This can be used as an alternative to the jsGet_ 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:
      ""