public enum JavaScriptType extends Enum<JavaScriptType>
| Enum Constant and Description |
|---|
BOOLEAN
The boolean variable is used to record a value of either
true or false. |
FUNCTION
Any built-in or user defined function.
|
NUMBER
The number variable holds any type of number, either an integer or a real number.
|
OBJECT
JavaScript provides a set of predefined objects to which the JavaScript programmer has access.
|
STRING
The string variable type stores a string of characters, typically making up either a word or sentence.
|
UNDEFINED
A JavaScript variable whose value is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static JavaScriptType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaScriptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaScriptType BOOLEAN
true or false.public static final JavaScriptType NUMBER
public static final JavaScriptType STRING
public static final JavaScriptType FUNCTION
public static final JavaScriptType OBJECT
public static final JavaScriptType UNDEFINED
public static JavaScriptType[] values()
for (JavaScriptType c : JavaScriptType.values()) System.out.println(c);
public static JavaScriptType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2004–2014 XWiki. All rights reserved.