Package com.itextpdf.text.pdf
Enum PRTokeniser.TokenType
- java.lang.Object
-
- java.lang.Enum<PRTokeniser.TokenType>
-
- com.itextpdf.text.pdf.PRTokeniser.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PRTokeniser.TokenType>
- Enclosing class:
- PRTokeniser
public static enum PRTokeniser.TokenType extends java.lang.Enum<PRTokeniser.TokenType>
Enum representing the possible token types- Since:
- 5.0.1
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TokenType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PRTokeniser.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PRTokeniser.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER
public static final PRTokeniser.TokenType NUMBER
-
STRING
public static final PRTokeniser.TokenType STRING
-
NAME
public static final PRTokeniser.TokenType NAME
-
COMMENT
public static final PRTokeniser.TokenType COMMENT
-
START_ARRAY
public static final PRTokeniser.TokenType START_ARRAY
-
END_ARRAY
public static final PRTokeniser.TokenType END_ARRAY
-
START_DIC
public static final PRTokeniser.TokenType START_DIC
-
END_DIC
public static final PRTokeniser.TokenType END_DIC
-
REF
public static final PRTokeniser.TokenType REF
-
OTHER
public static final PRTokeniser.TokenType OTHER
-
ENDOFFILE
public static final PRTokeniser.TokenType ENDOFFILE
-
-
Method Detail
-
values
public static PRTokeniser.TokenType[] 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 (PRTokeniser.TokenType c : PRTokeniser.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PRTokeniser.TokenType 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
-
-