Class VtlTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.velocity.ast.VtlTokenKinds
-
@InternalApi public final class VtlTokenKinds 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
BRACKETED_WORD
static int
COLON
static int
COMMA
static int
DIGIT
static int
DIRECTIVE_CHAR
static int
DIRECTIVE_TERMINATOR
static int
DIVIDE
static int
DOLLAR
static int
DOLLARBANG
static int
DOT
static int
DOUBLE_ESCAPE
static int
DOUBLEDOT
static int
ELSE_DIRECTIVE
static int
ELSEIF_DIRECTIVE
static int
EMPTY_INDEX
static int
END
static int
EOF
static int
EQUALS
static int
ESCAPE
static int
ESCAPE_DIRECTIVE
static int
EXPONENT
static int
FALSE
static int
FLOATING_POINT_LITERAL
static int
FOREACH_DIRECTIVE
static int
FORMAL_COMMENT
static int
HASH
static int
IDENTIFIER
static int
IDENTIFIER_CHAR
static int
IF_DIRECTIVE
static int
IN
static int
INDEX_LBRACKET
static int
INDEX_RBRACKET
static int
INTEGER_LITERAL
static int
LBRACKET
static int
LCURLY
static int
LEFT_CURLEY
static int
LETTER
static int
LOGICAL_AND
static int
LOGICAL_EQUALS
static int
LOGICAL_GE
static int
LOGICAL_GT
static int
LOGICAL_LE
static int
LOGICAL_LT
static int
LOGICAL_NOT
static int
LOGICAL_NOT_EQUALS
static int
LOGICAL_OR
static int
LPAREN
static int
MINUS
static int
MODULUS
static int
MULTI_LINE_COMMENT
static int
MULTIPLY
static int
NEWLINE
static int
PLUS
static int
RBRACKET
static int
RCURLY
static int
REFERENCE_TERMINATOR
static int
REFMOD2_RPAREN
static int
RIGHT_CURLEY
static int
RPAREN
static int
SET_DIRECTIVE
static int
SINGLE_LINE_COMMENT
static int
SINGLE_LINE_COMMENT_START
static int
STRING_LITERAL
static int
TEXT
static int
TEXTBLOCK
static List<String>
TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind.static int
TRUE
static int
WHITESPACE
static int
WORD
-
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
-
INDEX_LBRACKET
public static final int INDEX_LBRACKET
- See Also:
- Constant Field Values
-
INDEX_RBRACKET
public static final int INDEX_RBRACKET
- See Also:
- Constant Field Values
-
LBRACKET
public static final int LBRACKET
- See Also:
- Constant Field Values
-
RBRACKET
public static final int RBRACKET
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
DOUBLEDOT
public static final int DOUBLEDOT
- See Also:
- Constant Field Values
-
IN
public static final int IN
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
LEFT_CURLEY
public static final int LEFT_CURLEY
- See Also:
- Constant Field Values
-
RIGHT_CURLEY
public static final int RIGHT_CURLEY
- 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
-
REFMOD2_RPAREN
public static final int REFMOD2_RPAREN
- See Also:
- Constant Field Values
-
ESCAPE_DIRECTIVE
public static final int ESCAPE_DIRECTIVE
- See Also:
- Constant Field Values
-
SET_DIRECTIVE
public static final int SET_DIRECTIVE
- See Also:
- Constant Field Values
-
DOLLAR
public static final int DOLLAR
- See Also:
- Constant Field Values
-
DOLLARBANG
public static final int DOLLARBANG
- See Also:
- Constant Field Values
-
HASH
public static final int HASH
- See Also:
- Constant Field Values
-
SINGLE_LINE_COMMENT_START
public static final int SINGLE_LINE_COMMENT_START
- See Also:
- Constant Field Values
-
DOUBLE_ESCAPE
public static final int DOUBLE_ESCAPE
- See Also:
- Constant Field Values
-
ESCAPE
public static final int ESCAPE
- See Also:
- Constant Field Values
-
TEXT
public static final int TEXT
- See Also:
- Constant Field Values
-
SINGLE_LINE_COMMENT
public static final int SINGLE_LINE_COMMENT
- See Also:
- Constant Field Values
-
FORMAL_COMMENT
public static final int FORMAL_COMMENT
- See Also:
- Constant Field Values
-
MULTI_LINE_COMMENT
public static final int MULTI_LINE_COMMENT
- See Also:
- Constant Field Values
-
TEXTBLOCK
public static final int TEXTBLOCK
- See Also:
- Constant Field Values
-
WHITESPACE
public static final int WHITESPACE
- See Also:
- Constant Field Values
-
STRING_LITERAL
public static final int STRING_LITERAL
- 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
-
NEWLINE
public static final int NEWLINE
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MULTIPLY
public static final int MULTIPLY
- See Also:
- Constant Field Values
-
DIVIDE
public static final int DIVIDE
- See Also:
- Constant Field Values
-
MODULUS
public static final int MODULUS
- See Also:
- Constant Field Values
-
LOGICAL_AND
public static final int LOGICAL_AND
- See Also:
- Constant Field Values
-
LOGICAL_OR
public static final int LOGICAL_OR
- See Also:
- Constant Field Values
-
LOGICAL_LT
public static final int LOGICAL_LT
- See Also:
- Constant Field Values
-
LOGICAL_LE
public static final int LOGICAL_LE
- See Also:
- Constant Field Values
-
LOGICAL_GT
public static final int LOGICAL_GT
- See Also:
- Constant Field Values
-
LOGICAL_GE
public static final int LOGICAL_GE
- See Also:
- Constant Field Values
-
LOGICAL_EQUALS
public static final int LOGICAL_EQUALS
- See Also:
- Constant Field Values
-
LOGICAL_NOT_EQUALS
public static final int LOGICAL_NOT_EQUALS
- See Also:
- Constant Field Values
-
LOGICAL_NOT
public static final int LOGICAL_NOT
- See Also:
- Constant Field Values
-
EQUALS
public static final int EQUALS
- See Also:
- Constant Field Values
-
END
public static final int END
- See Also:
- Constant Field Values
-
FOREACH_DIRECTIVE
public static final int FOREACH_DIRECTIVE
- See Also:
- Constant Field Values
-
IF_DIRECTIVE
public static final int IF_DIRECTIVE
- See Also:
- Constant Field Values
-
ELSEIF_DIRECTIVE
public static final int ELSEIF_DIRECTIVE
- See Also:
- Constant Field Values
-
ELSE_DIRECTIVE
public static final int ELSE_DIRECTIVE
- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGIT
- See Also:
- Constant Field Values
-
INTEGER_LITERAL
public static final int INTEGER_LITERAL
- See Also:
- Constant Field Values
-
FLOATING_POINT_LITERAL
public static final int FLOATING_POINT_LITERAL
- See Also:
- Constant Field Values
-
EXPONENT
public static final int EXPONENT
- See Also:
- Constant Field Values
-
LETTER
public static final int LETTER
- See Also:
- Constant Field Values
-
DIRECTIVE_CHAR
public static final int DIRECTIVE_CHAR
- See Also:
- Constant Field Values
-
WORD
public static final int WORD
- See Also:
- Constant Field Values
-
BRACKETED_WORD
public static final int BRACKETED_WORD
- See Also:
- Constant Field Values
-
ALPHA_CHAR
public static final int ALPHA_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
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
LCURLY
public static final int LCURLY
- See Also:
- Constant Field Values
-
RCURLY
public static final int RCURLY
- See Also:
- Constant Field Values
-
REFERENCE_TERMINATOR
public static final int REFERENCE_TERMINATOR
- See Also:
- Constant Field Values
-
DIRECTIVE_TERMINATOR
public static final int DIRECTIVE_TERMINATOR
- See Also:
- Constant Field Values
-
EMPTY_INDEX
public static final int EMPTY_INDEX
- 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.
-
-