Package org.teavm.jso

Annotation Type JSMethod


@Retention(RUNTIME) @Target(METHOD) public @interface JSMethod

Marks abstract member method as a JavaScript method. This is equivalent to the following:

 @JSBody(params = ..., script = "return new this.methodName(...);")
 

where methodName is method's name by default or a name, directly specified by this annotation.

JSMethod can be avoided. This means that if you define abstract method on overlay class or interface, and don't specify any annotations, this method is treated as marked by JSMethod.

Author:
Alexey Andreev
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""