Annotation Interface JS.Code
- Enclosing class:
JS
A snippet of JavaScript code that must be included in the image.
The specified JavaScript code is meant to contain JavaScript declarations that are necessary
for the annotated Java class to work properly. The JavaScript code runs before any other code
in the image.
If the class annotated with this annotation is included in the image, then the specified
JavaScript code is executed when the image code is loaded. If the analysis concludes that
this class should not be included in the image, then specified JavaScript code may also not
be included.
This annotation can be applied to the same class more than once.
See also
JS.Code.Include
for a way to include a JavaScript file instead of a
JavaScript snippet.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Designates the path to the JavaScript file with the code that must be included in the image. -
Required Element Summary
Required Elements
-
Element Details
-
value
String value
-