@Retention(value=RUNTIME)
@Target(value={CONSTRUCTOR,METHOD,FIELD,TYPE})
@Documented
public @interface JsExport
When JsExport is applied to an entire class or interface, it is syntactic sugar for applying JsExport to every public static field and method of the class, except for constructors. When JsExport is applied to an entire class that is a java enum, all enumarations are exported as well. JsNoExport may be used to opt-out a public method or field if JsExport has been applied to an entire class.
Exported members act as an entry-point from the standpoint of the optimizer, and all code reachable from an exported method is also considered live, so use with care.
JsNoExport
,
JsNamespace
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value |