public static enum BrowserComponent.JSType extends Enum<BrowserComponent.JSType>
BrowserComponent.JSRef
object.Enum Constant and Description |
---|
BOOLEAN |
FUNCTION |
NUMBER |
OBJECT |
STRING |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
static BrowserComponent.JSType |
get(String type)
Gets the corresponding JSType for the given string type.
|
static BrowserComponent.JSType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrowserComponent.JSType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
public static final BrowserComponent.JSType OBJECT
public static final BrowserComponent.JSType FUNCTION
public static final BrowserComponent.JSType NUMBER
public static final BrowserComponent.JSType STRING
public static final BrowserComponent.JSType UNDEFINED
public static final BrowserComponent.JSType BOOLEAN
public static BrowserComponent.JSType[] values()
for (BrowserComponent.JSType c : BrowserComponent.JSType.values()) System.out.println(c);
public static BrowserComponent.JSType 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 nullpublic static BrowserComponent.JSType get(String type)
type
- The string type as returned by the typeof operator. Possible input values are 'object', 'function', 'number', 'boolean', and 'undefined'