Enum CssDeclarationValueTokenizer.TokenType
- java.lang.Object
-
- java.lang.Enum<CssDeclarationValueTokenizer.TokenType>
-
- com.itextpdf.styledxmlparser.css.parse.CssDeclarationValueTokenizer.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CssDeclarationValueTokenizer.TokenType>
- Enclosing class:
- CssDeclarationValueTokenizer
public static enum CssDeclarationValueTokenizer.TokenType extends java.lang.Enum<CssDeclarationValueTokenizer.TokenType>
Enumeration of the different token types.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TokenType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CssDeclarationValueTokenizer.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CssDeclarationValueTokenizer.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final CssDeclarationValueTokenizer.TokenType STRING
The string type.
-
FUNCTION
public static final CssDeclarationValueTokenizer.TokenType FUNCTION
The function type.
-
COMMA
public static final CssDeclarationValueTokenizer.TokenType COMMA
The comma type.
-
UNKNOWN
public static final CssDeclarationValueTokenizer.TokenType UNKNOWN
Unknown type.
-
-
Method Detail
-
values
public static CssDeclarationValueTokenizer.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 (CssDeclarationValueTokenizer.TokenType c : CssDeclarationValueTokenizer.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 CssDeclarationValueTokenizer.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
-
-