Package dev.amp.validator.css
Enum TokenType
- java.lang.Object
-
- java.lang.Enum<TokenType>
-
- dev.amp.validator.css.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<TokenType>
public enum TokenType extends Enum<TokenType>
Token enumeration types.- Author:
- nhant01, GeorgeLuo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AT_KEYWORDAT_KEYWORDAT_RULEQUALIFIED_RULECDCCDCCDOCDOCLOSE_CURLYCLOSE_CURLYCLOSE_PARENCLOSE_PARENCLOSE_SQUARECLOSE_SQUARECOLONCOLONCOMMACOMMADECLARATIONDECLARATIONDELIMDELIMEOF_TOKENEOF_TOKENERRORERRORFUNCTION_TOKENFUNCTION_TOKENIDENTIDENTOPEN_CURLYOPEN_CURLYOPEN_PARENOPEN_PARENOPEN_SQUAREOPEN_SQUAREPARSED_CSS_URLPARSED_CSS_URLQUALIFIED_RULEQUALIFIED_RULESEMICOLONSEMICOLONSTRINGSTRINGSTYLESHEETSTYLESHEETUNKNOWNUNKNOWNURLURLWHITESPACEWHITESPACE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOF_TOKEN
public static final TokenType EOF_TOKEN
EOF_TOKEN
-
PARSED_CSS_URL
public static final TokenType PARSED_CSS_URL
PARSED_CSS_URL
-
WHITESPACE
public static final TokenType WHITESPACE
WHITESPACE
-
CDO
public static final TokenType CDO
CDO
-
CDC
public static final TokenType CDC
CDC
-
AT_KEYWORD
public static final TokenType AT_KEYWORD
AT_KEYWORD
-
SEMICOLON
public static final TokenType SEMICOLON
SEMICOLON
-
OPEN_CURLY
public static final TokenType OPEN_CURLY
OPEN_CURLY
-
CLOSE_CURLY
public static final TokenType CLOSE_CURLY
CLOSE_CURLY
-
OPEN_SQUARE
public static final TokenType OPEN_SQUARE
OPEN_SQUARE
-
CLOSE_SQUARE
public static final TokenType CLOSE_SQUARE
CLOSE_SQUARE
-
OPEN_PAREN
public static final TokenType OPEN_PAREN
OPEN_PAREN
-
CLOSE_PAREN
public static final TokenType CLOSE_PAREN
CLOSE_PAREN
-
FUNCTION_TOKEN
public static final TokenType FUNCTION_TOKEN
FUNCTION_TOKEN
-
IDENT
public static final TokenType IDENT
IDENT
-
COLON
public static final TokenType COLON
COLON
-
COMMA
public static final TokenType COMMA
COMMA
-
STYLESHEET
public static final TokenType STYLESHEET
STYLESHEET
-
AT_RULE
public static final TokenType AT_RULE
QUALIFIED_RULE
-
QUALIFIED_RULE
public static final TokenType QUALIFIED_RULE
QUALIFIED_RULE
-
DECLARATION
public static final TokenType DECLARATION
DECLARATION
-
UNKNOWN
public static final TokenType UNKNOWN
UNKNOWN
-
DELIM
public static final TokenType DELIM
DELIM
-
URL
public static final TokenType URL
URL
-
STRING
public static final TokenType STRING
STRING
-
ERROR
public static final TokenType ERROR
ERROR
-
-
Method Detail
-
values
public static 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 (TokenType c : 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 TokenType 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
-
-