public static enum JsValue.Type extends java.lang.Enum<JsValue.Type>
null value has a bogus type NULL.| Enum Constant and Description |
|---|
TYPE_ARRAY
An object which is actually an array.
|
TYPE_BOOLEAN
Boolean type.
|
TYPE_DATE
An object which is actually a Date.
|
TYPE_ERROR
Error type (this one describes a JavaScript exception).
|
TYPE_FUNCTION
Function type.
|
TYPE_NULL
null type.
|
TYPE_NUMBER
Number type.
|
TYPE_OBJECT
Object type.
|
TYPE_REGEXP
A regular expression.
|
TYPE_STRING
String type.
|
TYPE_UNDEFINED
undefined type.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isObjectType(JsValue.Type type)
Returns whether
type corresponds to a JsObject. |
static JsValue.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsValue.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsValue.Type TYPE_OBJECT
public static final JsValue.Type TYPE_NUMBER
public static final JsValue.Type TYPE_STRING
public static final JsValue.Type TYPE_FUNCTION
public static final JsValue.Type TYPE_BOOLEAN
public static final JsValue.Type TYPE_ERROR
public static final JsValue.Type TYPE_REGEXP
public static final JsValue.Type TYPE_DATE
public static final JsValue.Type TYPE_ARRAY
public static final JsValue.Type TYPE_UNDEFINED
public static final JsValue.Type TYPE_NULL
public static JsValue.Type[] values()
for (JsValue.Type c : JsValue.Type.values()) System.out.println(c);
public static JsValue.Type 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 boolean isObjectType(JsValue.Type type)
type corresponds to a JsObject. Note that while 'null' is an object
in JavaScript world, here for API consistency it has bogus type TYPE_NULL and is
not a JsObject.type - to checkCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.