Package net.sourceforge.pmd.lang.jsp.ast
Class JspTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.jsp.ast.JspTokenKinds
-
@InternalApi @Generated("org.javacc.javacc") public final class JspTokenKinds extends Object
Token kinds (JavaccToken.kind
) for this language.
-
-
Field Summary
-
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
-
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
-
DOLLAR_OR_HASH
public static final int DOLLAR_OR_HASH
- See Also:
- Constant Field Values
-
NO_OPENBRACE
public static final int NO_OPENBRACE
- See Also:
- Constant Field Values
-
NO_LT_OR_DOLLAR_OR_HASH
public static final int NO_LT_OR_DOLLAR_OR_HASH
- 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
-
EL_ESCAPE
public static final int EL_ESCAPE
- See Also:
- Constant Field Values
-
NO_JSP_COMMENT_END
public static final int NO_JSP_COMMENT_END
- See Also:
- Constant Field Values
-
NO_JSP_TAG_END
public static final int NO_JSP_TAG_END
- See Also:
- Constant Field Values
-
NO_JSP_TAG_END_EXCEPT_QUOTED
public static final int NO_JSP_TAG_END_EXCEPT_QUOTED
- 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
-
JSP_COMMENT_START
public static final int JSP_COMMENT_START
- See Also:
- Constant Field Values
-
JSP_DECLARATION_START
public static final int JSP_DECLARATION_START
- See Also:
- Constant Field Values
-
JSP_EXPRESSION_START
public static final int JSP_EXPRESSION_START
- See Also:
- Constant Field Values
-
JSP_SCRIPTLET_START
public static final int JSP_SCRIPTLET_START
- See Also:
- Constant Field Values
-
JSP_DIRECTIVE_START
public static final int JSP_DIRECTIVE_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
-
JSP_DIRECTIVE_NAME
public static final int JSP_DIRECTIVE_NAME
- See Also:
- Constant Field Values
-
JSP_DIRECTIVE_ATTRIBUTE_NAME
public static final int JSP_DIRECTIVE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
JSP_DIRECTIVE_ATTRIBUTE_EQUALS
public static final int JSP_DIRECTIVE_ATTRIBUTE_EQUALS
- See Also:
- Constant Field Values
-
JSP_DIRECTIVE_ATTRIBUTE_VALUE
public static final int JSP_DIRECTIVE_ATTRIBUTE_VALUE
- See Also:
- Constant Field Values
-
JSP_DIRECTIVE_END
public static final int JSP_DIRECTIVE_END
- See Also:
- Constant Field Values
-
JSP_SCRIPTLET_END
public static final int JSP_SCRIPTLET_END
- See Also:
- Constant Field Values
-
JSP_SCRIPTLET
public static final int JSP_SCRIPTLET
- See Also:
- Constant Field Values
-
JSP_EXPRESSION_END
public static final int JSP_EXPRESSION_END
- See Also:
- Constant Field Values
-
JSP_EXPRESSION
public static final int JSP_EXPRESSION
- See Also:
- Constant Field Values
-
JSP_DECLARATION_END
public static final int JSP_DECLARATION_END
- See Also:
- Constant Field Values
-
JSP_DECLARATION
public static final int JSP_DECLARATION
- See Also:
- Constant Field Values
-
JSP_COMMENT_END
public static final int JSP_COMMENT_END
- See Also:
- Constant Field Values
-
JSP_COMMENT_CONTENT
public static final int JSP_COMMENT_CONTENT
- 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
-
EL_EXPRESSION_IN_ATTRIBUTE
public static final int EL_EXPRESSION_IN_ATTRIBUTE
- See Also:
- Constant Field Values
-
VALUE_BINDING_IN_ATTRIBUTE
public static final int VALUE_BINDING_IN_ATTRIBUTE
- See Also:
- Constant Field Values
-
JSP_EXPRESSION_IN_ATTRIBUTE
public static final int JSP_EXPRESSION_IN_ATTRIBUTE
- See Also:
- Constant Field Values
-
ENDING_WHITESPACE
public static final int ENDING_WHITESPACE
- 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
-
UNPARSED_TEXT_NO_SINGLE_QUOTES
public static final int UNPARSED_TEXT_NO_SINGLE_QUOTES
- See Also:
- Constant Field Values
-
DOLLAR_OR_HASH_SINGLE_QUOTE
public static final int DOLLAR_OR_HASH_SINGLE_QUOTE
- See Also:
- Constant Field Values
-
ENDING_DOUBLE_QUOTE
public static final int ENDING_DOUBLE_QUOTE
- See Also:
- Constant Field Values
-
UNPARSED_TEXT_NO_DOUBLE_QUOTES
public static final int UNPARSED_TEXT_NO_DOUBLE_QUOTES
- See Also:
- Constant Field Values
-
DOLLAR_OR_HASH_DOUBLE_QUOTE
public static final int DOLLAR_OR_HASH_DOUBLE_QUOTE
- 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
-
HTML_SCRIPT_CONTENT
public static final int HTML_SCRIPT_CONTENT
- See Also:
- Constant Field Values
-
HTML_SCRIPT_END_TAG
public static final int HTML_SCRIPT_END_TAG
- 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.
-
-