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 intALPHA_CHARstatic intALPHANUM_CHARstatic intAMP_AMPstatic intATTR_EQstatic intATTR_NAMEstatic intBYTE_ORDER_MARKstatic intCDATA_ENDstatic intCDATA_STARTstatic intCLOSEBRACEstatic intCOLONstatic intCOMMAstatic intCOMMENT_CLOSE_DQstatic intCOMMENT_CLOSE_SCRIPTstatic intCOMMENT_CLOSE_SQstatic intCOMMENT_ENDstatic intCOMMENT_INNER_TEXT_DQstatic intCOMMENT_INNER_TEXT_SCRIPTstatic intCOMMENT_INNER_TEXT_SQstatic intCOMMENT_OPEN_DQstatic intCOMMENT_OPEN_SCRIPTstatic intCOMMENT_OPEN_SQstatic intCOMMENT_STARTstatic intCOMMENT_TEXTstatic intCOMMNT_ENDstatic intCOMMNT_STARTstatic intCONCATstatic intCONCATEQstatic intDECL_ENDstatic intDECL_STARTstatic intDIGITSstatic intDIVstatic intDIVEQstatic intDOCTYPE_DECL_ENDstatic intDOCTYPE_DECL_STARTstatic intDOTstatic intDOUBLE_EQstatic intDOUBLE_QUOTEstatic intEL_EXPRESSIONstatic intEL_EXPRESSION_IN_ATTRIBUTE_DQstatic intEL_EXPRESSION_IN_ATTRIBUTE_NQstatic intEL_EXPRESSION_IN_ATTRIBUTE_SQstatic intEL_EXPRESSION_IN_SCRIPTstatic intEND_OF_ELstatic intEND_OF_EL_ATTRIB_DQstatic intEND_OF_EL_ATTRIB_NQstatic intEND_OF_EL_ATTRIB_SQstatic intEND_OF_EL_SCRIPTstatic intENDING_DOUBLE_QUOTEstatic intENDING_SINGLE_QUOTEstatic intENDING_WHITESPACEstatic intENDTAG_STARTstatic intEOFstatic intEQstatic intEXCLstatic intEXP_DOTstatic intFALSEstatic intGEstatic intGTstatic intHTML_SCRIPT_CONTENTstatic intHTML_SCRIPT_END_TAGstatic intHTML_SCRIPT_STARTstatic intIDENTIFIERstatic intIDENTIFIER_CHARstatic intIDENTIFIER_DOTTEDstatic intIDENTIFIER_ELstatic intIN_ATTR_WHITESPACEstatic intIN_TAG_ERRORstatic intLEstatic intLPARENstatic intLSQUAREstatic intLST_ERRORstatic intLTstatic intMINUSstatic intMINUSEQstatic intMULstatic intMULEQstatic intNAMEstatic intNEWLINEstatic intNO_BANGstatic intNO_ENDTAG_STARTstatic intNO_LT_OR_OPENBRACEstatic intNO_QUOTE_NO_WHITESPACEstatic intNO_WHITESPACE_OR_LT_OR_DOLLARstatic intNOT_EQstatic intNULLstatic intNUM_CHARstatic intOPENBRACEstatic intPERCENTstatic intPIPE_PIPEstatic intPLUSstatic intPLUSEQstatic intPOWstatic intPUBLICstatic intQQstatic intQUOTEstatic intQUOTED_LITERALstatic intQUOTED_STRINGstatic intQUOTED_STRING_NO_BREAKSstatic intRPARENstatic intRSQUAREstatic intSINGLE_QUOTEstatic intSTRING_LITERALstatic intSYSTEMstatic intTAG_ENDstatic intTAG_NAMEstatic intTAG_SLASHENDstatic intTAG_STARTstatic intTEXT_IN_ELstatic List<String>TOKEN_NAMESNams of the tokens, each index corresponds to a kind.static intTRUEstatic intUNPARSEDstatic intUNPARSED_TEXTstatic intUNPARSED_TEXT_NO_DOUBLE_QUOTESstatic intUNPARSED_TEXT_NO_SINGLE_QUOTESstatic intUNPARSED_TEXT_NO_WHITESPACEstatic intWHITESPACEstatic intWHITESPACESstatic intXMLNAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable Stringdescribe(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.
-
-