@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface JsType
Furthermore, if the JsType is marked with a prototype reference, then concrete implementations of the class emitted by the GWT compiler will use the specified prototype as opposed to the ordinary one (e.g. java.lang.Object).
JsTypes act like JavaScriptObject in terms of castability, except when a prototype is specified, in which case, cast checks and instanceof checks will be delegated to the native JS instanceof operator.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
prototype |