Annotation Type | Description |
---|---|
JsAsync |
JsAsync marks a method to be transpiled to an async JavaScript method.
|
JsConstructor |
JsConstructor marks a constructor that will be translated into a JavaScript constructor function.
|
JsEnum |
JsEnum marks a Java enum as being represented as a Closure enum, either one that already exists
from the external JavaScript environment, or one that will be accessible from the external
JavaScript environment.
|
JsFunction |
JsFunction marks a functional interface as being the definition of a JavaScript function.
|
JsIgnore |
Marks a member to be ignored for JsInterop purposes.
|
JsMethod |
JsMethod marks a method that will be directly translated into a JavaScript method preserving its
name.
|
JsNonNull |
JsNonNull marks a type as non-nullable indicating that program elements of such a type can not
hold a
null value. |
JsNullable |
JsNullable marks a type variable as nullable indicating that program elements of such a type can
hold a
null value. |
JsOptional |
JsOptional marks a parameter in a method as optional indicating that the argument can be omitted
from the function call when called from JavaScript side.
|
JsOverlay |
JsOverlay is used to enhance Java API of the native JsTypes and JsFunctions so richer and more
Java friendly abstractions could be provided.
|
JsPackage |
Provides a default namespace for all @JsType classes in a package by applying to
'package-info.java'.
|
JsProperty |
JsProperty marks a field or method that is translated directly into a JavaScript property
preserving its name.
|
JsType |
JsType is used to describe the JavaScript API of an object, either one that already exists from
the external JavaScript environment, or one that will be accessible from the external JavaScript
environment.
|