Package org.teavm.jso
Annotation Interface JSProperty
Marks abstract member method as either a getter or a setter.
Getter's name must conform the Java Beans specification, i.e. start with get prefix
(or is in case of boolean getter). It must not take any parameters and must return a value.
For getter annotation is equivalent to the following:
@JSBody(params = {}, script = "return this.propertyName;")
Setter's name must conform the Java Beans specification, i.e. start with set prefix
It must take exactly one parameter and must not return a value.
For setter annotation is equivalent to the following:
@JSBody(params = "value", script = "this.propertyName = value;")
By default propertyName is calculated from method's name according to Java Beans specification,
otherwise the name specified by annotation is taken.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value- Default:
- ""
-