Package net.sourceforge.pmd.lang.vf.ast
Class VfTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.vf.ast.VfTokenKinds
-
@InternalApi public final class VfTokenKinds extends Object
Token kinds (JavaccToken.kind
) for this language.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALPHA_CHAR
static int
ALPHANUM_CHAR
static int
AMP_AMP
static int
ATTR_EQ
static int
ATTR_NAME
static int
BYTE_ORDER_MARK
static int
CDATA_END
static int
CDATA_START
static int
CLOSEBRACE
static int
COLON
static int
COMMA
static int
COMMENT_CLOSE_DQ
static int
COMMENT_CLOSE_SCRIPT
static int
COMMENT_CLOSE_SQ
static int
COMMENT_END
static int
COMMENT_INNER_TEXT_DQ
static int
COMMENT_INNER_TEXT_SCRIPT
static int
COMMENT_INNER_TEXT_SQ
static int
COMMENT_OPEN_DQ
static int
COMMENT_OPEN_SCRIPT
static int
COMMENT_OPEN_SQ
static int
COMMENT_START
static int
COMMENT_TEXT
static int
COMMNT_END
static int
COMMNT_START
static int
CONCAT
static int
CONCATEQ
static int
DECL_END
static int
DECL_START
static int
DIGITS
static int
DIV
static int
DIVEQ
static int
DOCTYPE_DECL_END
static int
DOCTYPE_DECL_START
static int
DOT
static int
DOUBLE_EQ
static int
DOUBLE_QUOTE
static int
EL_EXPRESSION
static int
EL_EXPRESSION_IN_ATTRIBUTE_DQ
static int
EL_EXPRESSION_IN_ATTRIBUTE_NQ
static int
EL_EXPRESSION_IN_ATTRIBUTE_SQ
static int
EL_EXPRESSION_IN_SCRIPT
static int
END_OF_EL
static int
END_OF_EL_ATTRIB_DQ
static int
END_OF_EL_ATTRIB_NQ
static int
END_OF_EL_ATTRIB_SQ
static int
END_OF_EL_SCRIPT
static int
ENDING_DOUBLE_QUOTE
static int
ENDING_SINGLE_QUOTE
static int
ENDING_WHITESPACE
static int
ENDTAG_START
static int
EOF
static int
EQ
static int
EXCL
static int
EXP_DOT
static int
FALSE
static int
GE
static int
GT
static int
HTML_SCRIPT_CONTENT
static int
HTML_SCRIPT_END_TAG
static int
HTML_SCRIPT_START
static int
IDENTIFIER
static int
IDENTIFIER_CHAR
static int
IDENTIFIER_DOTTED
static int
IDENTIFIER_EL
static int
IN_ATTR_WHITESPACE
static int
IN_TAG_ERROR
static int
LE
static int
LPAREN
static int
LSQUARE
static int
LST_ERROR
static int
LT
static int
MINUS
static int
MINUSEQ
static int
MUL
static int
MULEQ
static int
NAME
static int
NEWLINE
static int
NO_BANG
static int
NO_ENDTAG_START
static int
NO_LT_OR_OPENBRACE
static int
NO_QUOTE_NO_WHITESPACE
static int
NO_WHITESPACE_OR_LT_OR_DOLLAR
static int
NOT_EQ
static int
NULL
static int
NUM_CHAR
static int
OPENBRACE
static int
PERCENT
static int
PIPE_PIPE
static int
PLUS
static int
PLUSEQ
static int
POW
static int
PUBLIC
static int
QQ
static int
QUOTE
static int
QUOTED_LITERAL
static int
QUOTED_STRING
static int
QUOTED_STRING_NO_BREAKS
static int
RPAREN
static int
RSQUARE
static int
SINGLE_QUOTE
static int
STRING_LITERAL
static int
SYSTEM
static int
TAG_END
static int
TAG_NAME
static int
TAG_SLASHEND
static int
TAG_START
static int
TEXT_IN_EL
static List<String>
TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind.static int
TRUE
static int
UNPARSED
static int
UNPARSED_TEXT
static int
UNPARSED_TEXT_NO_DOUBLE_QUOTES
static int
UNPARSED_TEXT_NO_SINGLE_QUOTES
static int
UNPARSED_TEXT_NO_WHITESPACE
static int
WHITESPACE
static int
WHITESPACES
static int
XMLNAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable String
describe(int kind)
Returns a string describing the given token kind.static TokenManager<JavaccToken>
newTokenManager(CharStream cs)
Returns a new token manager for this language.
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
ALPHA_CHAR
public static final int ALPHA_CHAR
- See Also:
- Constant Field Values
-
NUM_CHAR
public static final int NUM_CHAR
- See Also:
- Constant Field Values
-
ALPHANUM_CHAR
public static final int ALPHANUM_CHAR
- See Also:
- Constant Field Values
-
IDENTIFIER_CHAR
public static final int IDENTIFIER_CHAR
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final int IDENTIFIER
- See Also:
- Constant Field Values
-
IDENTIFIER_DOTTED
public static final int IDENTIFIER_DOTTED
- See Also:
- Constant Field Values
-
XMLNAME
public static final int XMLNAME
- See Also:
- Constant Field Values
-
QUOTED_STRING_NO_BREAKS
public static final int QUOTED_STRING_NO_BREAKS
- See Also:
- Constant Field Values
-
QUOTED_STRING
public static final int QUOTED_STRING
- See Also:
- Constant Field Values
-
WHITESPACE
public static final int WHITESPACE
- See Also:
- Constant Field Values
-
NEWLINE
public static final int NEWLINE
- See Also:
- Constant Field Values
-
QUOTE
public static final int QUOTE
- See Also:
- Constant Field Values
-
NO_WHITESPACE_OR_LT_OR_DOLLAR
public static final int NO_WHITESPACE_OR_LT_OR_DOLLAR
- See Also:
- Constant Field Values
-
NO_BANG
public static final int NO_BANG
- See Also:
- Constant Field Values
-
OPENBRACE
public static final int OPENBRACE
- See Also:
- Constant Field Values
-
NO_LT_OR_OPENBRACE
public static final int NO_LT_OR_OPENBRACE
- See Also:
- Constant Field Values
-
NO_ENDTAG_START
public static final int NO_ENDTAG_START
- See Also:
- Constant Field Values
-
TEXT_IN_EL
public static final int TEXT_IN_EL
- See Also:
- Constant Field Values
-
CLOSEBRACE
public static final int CLOSEBRACE
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
COMMNT_START
public static final int COMMNT_START
- See Also:
- Constant Field Values
-
COMMNT_END
public static final int COMMNT_END
- See Also:
- Constant Field Values
-
TAG_START
public static final int TAG_START
- See Also:
- Constant Field Values
-
ENDTAG_START
public static final int ENDTAG_START
- See Also:
- Constant Field Values
-
COMMENT_START
public static final int COMMENT_START
- See Also:
- Constant Field Values
-
DECL_START
public static final int DECL_START
- See Also:
- Constant Field Values
-
DOCTYPE_DECL_START
public static final int DOCTYPE_DECL_START
- See Also:
- Constant Field Values
-
CDATA_START
public static final int CDATA_START
- See Also:
- Constant Field Values
-
HTML_SCRIPT_START
public static final int HTML_SCRIPT_START
- See Also:
- Constant Field Values
-
EL_EXPRESSION
public static final int EL_EXPRESSION
- See Also:
- Constant Field Values
-
UNPARSED_TEXT
public static final int UNPARSED_TEXT
- See Also:
- Constant Field Values
-
NULL
public static final int NULL
- See Also:
- Constant Field Values
-
TRUE
public static final int TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final int FALSE
- See Also:
- Constant Field Values
-
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
LSQUARE
public static final int LSQUARE
- See Also:
- Constant Field Values
-
RSQUARE
public static final int RSQUARE
- See Also:
- Constant Field Values
-
EXP_DOT
public static final int EXP_DOT
- See Also:
- Constant Field Values
-
AMP_AMP
public static final int AMP_AMP
- See Also:
- Constant Field Values
-
CONCATEQ
public static final int CONCATEQ
- See Also:
- Constant Field Values
-
CONCAT
public static final int CONCAT
- See Also:
- Constant Field Values
-
POW
public static final int POW
- See Also:
- Constant Field Values
-
DIVEQ
public static final int DIVEQ
- See Also:
- Constant Field Values
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
PLUSEQ
public static final int PLUSEQ
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUSEQ
public static final int MINUSEQ
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
MULEQ
public static final int MULEQ
- See Also:
- Constant Field Values
-
MUL
public static final int MUL
- See Also:
- Constant Field Values
-
PERCENT
public static final int PERCENT
- See Also:
- Constant Field Values
-
DOUBLE_EQ
public static final int DOUBLE_EQ
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
NOT_EQ
public static final int NOT_EQ
- See Also:
- Constant Field Values
-
LE
public static final int LE
- See Also:
- Constant Field Values
-
GE
public static final int GE
- See Also:
- Constant Field Values
-
LT
public static final int LT
- See Also:
- Constant Field Values
-
GT
public static final int GT
- See Also:
- Constant Field Values
-
EXCL
public static final int EXCL
- See Also:
- Constant Field Values
-
PIPE_PIPE
public static final int PIPE_PIPE
- See Also:
- Constant Field Values
-
STRING_LITERAL
public static final int STRING_LITERAL
- See Also:
- Constant Field Values
-
DIGITS
public static final int DIGITS
- See Also:
- Constant Field Values
-
IDENTIFIER_EL
public static final int IDENTIFIER_EL
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
QQ
public static final int QQ
- See Also:
- Constant Field Values
-
END_OF_EL
public static final int END_OF_EL
- See Also:
- Constant Field Values
-
COMMENT_OPEN_SQ
public static final int COMMENT_OPEN_SQ
- See Also:
- Constant Field Values
-
END_OF_EL_ATTRIB_SQ
public static final int END_OF_EL_ATTRIB_SQ
- See Also:
- Constant Field Values
-
COMMENT_OPEN_DQ
public static final int COMMENT_OPEN_DQ
- See Also:
- Constant Field Values
-
END_OF_EL_ATTRIB_DQ
public static final int END_OF_EL_ATTRIB_DQ
- See Also:
- Constant Field Values
-
END_OF_EL_ATTRIB_NQ
public static final int END_OF_EL_ATTRIB_NQ
- See Also:
- Constant Field Values
-
COMMENT_OPEN_SCRIPT
public static final int COMMENT_OPEN_SCRIPT
- See Also:
- Constant Field Values
-
END_OF_EL_SCRIPT
public static final int END_OF_EL_SCRIPT
- See Also:
- Constant Field Values
-
WHITESPACES
public static final int WHITESPACES
- See Also:
- Constant Field Values
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
-
SYSTEM
public static final int SYSTEM
- See Also:
- Constant Field Values
-
DOCTYPE_DECL_END
public static final int DOCTYPE_DECL_END
- See Also:
- Constant Field Values
-
QUOTED_LITERAL
public static final int QUOTED_LITERAL
- See Also:
- Constant Field Values
-
UNPARSED
public static final int UNPARSED
- See Also:
- Constant Field Values
-
CDATA_END
public static final int CDATA_END
- See Also:
- Constant Field Values
-
TAG_NAME
public static final int TAG_NAME
- See Also:
- Constant Field Values
-
LST_ERROR
public static final int LST_ERROR
- See Also:
- Constant Field Values
-
ATTR_NAME
public static final int ATTR_NAME
- See Also:
- Constant Field Values
-
TAG_END
public static final int TAG_END
- See Also:
- Constant Field Values
-
DECL_END
public static final int DECL_END
- See Also:
- Constant Field Values
-
TAG_SLASHEND
public static final int TAG_SLASHEND
- See Also:
- Constant Field Values
-
ATTR_EQ
public static final int ATTR_EQ
- See Also:
- Constant Field Values
-
IN_TAG_ERROR
public static final int IN_TAG_ERROR
- See Also:
- Constant Field Values
-
SINGLE_QUOTE
public static final int SINGLE_QUOTE
- See Also:
- Constant Field Values
-
DOUBLE_QUOTE
public static final int DOUBLE_QUOTE
- See Also:
- Constant Field Values
-
NO_QUOTE_NO_WHITESPACE
public static final int NO_QUOTE_NO_WHITESPACE
- See Also:
- Constant Field Values
-
IN_ATTR_WHITESPACE
public static final int IN_ATTR_WHITESPACE
- See Also:
- Constant Field Values
-
ENDING_WHITESPACE
public static final int ENDING_WHITESPACE
- See Also:
- Constant Field Values
-
EL_EXPRESSION_IN_ATTRIBUTE_NQ
public static final int EL_EXPRESSION_IN_ATTRIBUTE_NQ
- See Also:
- Constant Field Values
-
UNPARSED_TEXT_NO_WHITESPACE
public static final int UNPARSED_TEXT_NO_WHITESPACE
- See Also:
- Constant Field Values
-
ENDING_SINGLE_QUOTE
public static final int ENDING_SINGLE_QUOTE
- See Also:
- Constant Field Values
-
EL_EXPRESSION_IN_ATTRIBUTE_SQ
public static final int EL_EXPRESSION_IN_ATTRIBUTE_SQ
- See Also:
- Constant Field Values
-
UNPARSED_TEXT_NO_SINGLE_QUOTES
public static final int UNPARSED_TEXT_NO_SINGLE_QUOTES
- See Also:
- Constant Field Values
-
ENDING_DOUBLE_QUOTE
public static final int ENDING_DOUBLE_QUOTE
- See Also:
- Constant Field Values
-
EL_EXPRESSION_IN_ATTRIBUTE_DQ
public static final int EL_EXPRESSION_IN_ATTRIBUTE_DQ
- See Also:
- Constant Field Values
-
UNPARSED_TEXT_NO_DOUBLE_QUOTES
public static final int UNPARSED_TEXT_NO_DOUBLE_QUOTES
- See Also:
- Constant Field Values
-
COMMENT_END
public static final int COMMENT_END
- See Also:
- Constant Field Values
-
COMMENT_TEXT
public static final int COMMENT_TEXT
- See Also:
- Constant Field Values
-
COMMENT_CLOSE_SCRIPT
public static final int COMMENT_CLOSE_SCRIPT
- See Also:
- Constant Field Values
-
COMMENT_INNER_TEXT_SCRIPT
public static final int COMMENT_INNER_TEXT_SCRIPT
- See Also:
- Constant Field Values
-
COMMENT_CLOSE_SQ
public static final int COMMENT_CLOSE_SQ
- See Also:
- Constant Field Values
-
COMMENT_INNER_TEXT_SQ
public static final int COMMENT_INNER_TEXT_SQ
- See Also:
- Constant Field Values
-
COMMENT_CLOSE_DQ
public static final int COMMENT_CLOSE_DQ
- See Also:
- Constant Field Values
-
COMMENT_INNER_TEXT_DQ
public static final int COMMENT_INNER_TEXT_DQ
- See Also:
- Constant Field Values
-
HTML_SCRIPT_END_TAG
public static final int HTML_SCRIPT_END_TAG
- See Also:
- Constant Field Values
-
EL_EXPRESSION_IN_SCRIPT
public static final int EL_EXPRESSION_IN_SCRIPT
- See Also:
- Constant Field Values
-
HTML_SCRIPT_CONTENT
public static final int HTML_SCRIPT_CONTENT
- See Also:
- Constant Field Values
-
BYTE_ORDER_MARK
public static final int BYTE_ORDER_MARK
- See Also:
- Constant Field Values
-
TOKEN_NAMES
public static final List<String> TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind. See alsodescribe(int)
.
-
-
Method Detail
-
describe
public static @Nullable String describe(int kind)
Returns a string describing the given token kind. Returns null if the kind is unknown.- Parameters:
kind
- Kind of token- Returns:
- A string describing the given kind
-
newTokenManager
@InternalApi public static TokenManager<JavaccToken> newTokenManager(CharStream cs)
Returns a new token manager for this language. The CharStream should be configured with the correct language-specific escaping and token document. This is not a published API, it's intended to be used as a basis for a CPD Tokenizer.
-
-