Package org.eclipse.jetty.util.ajax
Enum AsyncJSON.State
- java.lang.Object
-
- java.lang.Enum<AsyncJSON.State>
-
- org.eclipse.jetty.util.ajax.AsyncJSON.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AsyncJSON.State>
- Enclosing class:
- AsyncJSON
private static enum AsyncJSON.State extends java.lang.Enum<AsyncJSON.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
COMPLETE
ESCAPE
FALSE
NULL
NUMBER
OBJECT
OBJECT_FIELD
OBJECT_FIELD_NAME
OBJECT_FIELD_VALUE
STRING
TRUE
UNICODE
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncJSON.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AsyncJSON.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPLETE
public static final AsyncJSON.State COMPLETE
-
NULL
public static final AsyncJSON.State NULL
-
TRUE
public static final AsyncJSON.State TRUE
-
FALSE
public static final AsyncJSON.State FALSE
-
NUMBER
public static final AsyncJSON.State NUMBER
-
STRING
public static final AsyncJSON.State STRING
-
ESCAPE
public static final AsyncJSON.State ESCAPE
-
UNICODE
public static final AsyncJSON.State UNICODE
-
ARRAY
public static final AsyncJSON.State ARRAY
-
OBJECT
public static final AsyncJSON.State OBJECT
-
OBJECT_FIELD
public static final AsyncJSON.State OBJECT_FIELD
-
OBJECT_FIELD_NAME
public static final AsyncJSON.State OBJECT_FIELD_NAME
-
OBJECT_FIELD_VALUE
public static final AsyncJSON.State OBJECT_FIELD_VALUE
-
-
Method Detail
-
values
public static AsyncJSON.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AsyncJSON.State c : AsyncJSON.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsyncJSON.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-