public static enum JavaScriptSource.Kind extends java.lang.Enum<JavaScriptSource.Kind>
Enum Constant and Description |
---|
EMBEDDED
JavaScript code embedded in a 'script' tag in an HTML file.
|
EVENTHANDLER
JavaScript code embedded in an event handler attribute in an HTML file.
|
FILE
JavaScript code in a separate file.
|
Modifier and Type | Method and Description |
---|---|
static JavaScriptSource.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaScriptSource.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaScriptSource.Kind EMBEDDED
public static final JavaScriptSource.Kind EVENTHANDLER
public static final JavaScriptSource.Kind FILE
public static JavaScriptSource.Kind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static JavaScriptSource.Kind[] values()
for (JavaScriptSource.Kind c : JavaScriptSource.Kind.values()) System.out.println(c);
Copyright © 2009-2019 Aarhus University