public enum JsonSyntaxElement extends java.lang.Enum<JsonSyntaxElement> implements IEnumType
Enum Constant and Description |
---|
ARRAY_END |
ARRAY_START |
ELEMENT_SEPARATOR |
LITERAL_FALSE |
LITERAL_NULL |
LITERAL_TRUE |
OBJECT_END |
OBJECT_START |
PAIR_SEPARATOR |
STRING_DELIMITER |
STRING_ESCAPE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Returns the string representation of the implementing object.
|
java.lang.String |
toString() |
static JsonSyntaxElement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonSyntaxElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
getDeclaringClass, name, ordinal
public static final JsonSyntaxElement OBJECT_START
public static final JsonSyntaxElement OBJECT_END
public static final JsonSyntaxElement ARRAY_START
public static final JsonSyntaxElement ARRAY_END
public static final JsonSyntaxElement ELEMENT_SEPARATOR
public static final JsonSyntaxElement PAIR_SEPARATOR
public static final JsonSyntaxElement STRING_DELIMITER
public static final JsonSyntaxElement LITERAL_NULL
public static final JsonSyntaxElement LITERAL_TRUE
public static final JsonSyntaxElement LITERAL_FALSE
public static final JsonSyntaxElement STRING_ESCAPE
public static JsonSyntaxElement[] values()
for (JsonSyntaxElement c : JsonSyntaxElement.values()) System.out.println(c);
public static JsonSyntaxElement 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 java.lang.String asString()
IStringRepresentation
asString
in interface IStringRepresentation
public java.lang.String toString()
toString
in class java.lang.Enum<JsonSyntaxElement>