Package org.verapdf.parser
Enum Token.Type
- java.lang.Object
-
- java.lang.Enum<Token.Type>
-
- org.verapdf.parser.Token.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Token.Type>
- Enclosing class:
- Token
public static enum Token.Type extends Enum<Token.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TT_CLOSEARRAY
TT_CLOSEDICT
TT_ENDPROC
TT_EOF
TT_HEXSTRING
TT_INTEGER
TT_KEYWORD
TT_LITSTRING
TT_NAME
TT_NONE
TT_OPENARRAY
TT_OPENDICT
TT_REAL
TT_STARTPROC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Token.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Token.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TT_NONE
public static final Token.Type TT_NONE
-
TT_KEYWORD
public static final Token.Type TT_KEYWORD
-
TT_INTEGER
public static final Token.Type TT_INTEGER
-
TT_REAL
public static final Token.Type TT_REAL
-
TT_LITSTRING
public static final Token.Type TT_LITSTRING
-
TT_HEXSTRING
public static final Token.Type TT_HEXSTRING
-
TT_NAME
public static final Token.Type TT_NAME
-
TT_OPENARRAY
public static final Token.Type TT_OPENARRAY
-
TT_CLOSEARRAY
public static final Token.Type TT_CLOSEARRAY
-
TT_OPENDICT
public static final Token.Type TT_OPENDICT
-
TT_CLOSEDICT
public static final Token.Type TT_CLOSEDICT
-
TT_EOF
public static final Token.Type TT_EOF
-
TT_STARTPROC
public static final Token.Type TT_STARTPROC
-
TT_ENDPROC
public static final Token.Type TT_ENDPROC
-
-
Method Detail
-
values
public static Token.Type[] 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 (Token.Type c : Token.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Token.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-