public static JsProperty
JsType as a property accessor and recognizes
JavaBean style naming convention. Instead of translating method calls to JsProperty methods
as method calls in JS, they will be replaced with dotted property lookups.
Examples:
@JsProperty getX() translates as this.x
@JsProperty x() translates as this.x
@JsProperty setX(int y) translates as this.x=y
@JsProperty x(int x) translates as this.x=y
@JsProperty hasX(int x) translates as x in this
In addition, fluent style return this syntax is supported for setters, so
@JsProperty T setX(int x) translates as this.x=x, return this.
Copyright © 2018. All rights reserved.