Package net.sourceforge.pmd.lang.cpp.ast
Class CppTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.cpp.ast.CppTokenKinds
-
@InternalApi public final class CppTokenKinds extends Object
Token kinds (JavaccToken.kind
) for this language.
-
-
Field Summary
Fields Modifier and Type Field Description static int
_DEFAULT
static int
AMPERSAND
static int
AND
static int
ARROWSTAR
static int
ASSIGNEQUAL
static int
AT
static int
AUTO
static int
BINARY_INT_LITERAL
static int
BINARYDIGIT
static int
BITWISEANDEQUAL
static int
BITWISEOR
static int
BITWISEOREQUAL
static int
BITWISEXOR
static int
BITWISEXOREQUAL
static int
BREAK
static int
CASE
static int
CATCH
static int
CHAR
static int
CHARACTER
static int
CHRPREF
static int
CLASS
static int
COLON
static int
COMMA
static int
CONST
static int
CONTINUE
static int
DECIMAL_INT_LITERAL
static int
DECIMALDIGIT
static int
DELETE
static int
DIVIDE
static int
DIVIDEEQUAL
static int
DO
static int
DOT
static int
DOTSTAR
static int
DOUBLE
static int
ELLIPSIS
static int
ELSE
static int
ENUM
static int
EOF
static int
EQUAL
static int
EXP_PART
static int
EXTERN
static int
FALSETOK
static int
FINALLY
static int
FLOAT
static int
FLOAT_LITERAL
static int
FOR
static int
FRIEND
static int
GOTO
static int
GREATERTHAN
static int
GREATERTHANOREQUALTO
static int
HEXADECIMAL_INT_LITERAL
static int
HEXDIGIT
static int
HEXDIGIT_4
static int
ID
static int
ID_CHAR
static int
ID_START_CHAR
static int
IF
static int
INLINE
static int
INT
static int
INT_IN_FLOAT
static int
INT_SUFFIX
static int
LCURLYBRACE
static int
LESSTHAN
static int
LESSTHANOREQUALTO
static int
LONG
static int
LPARENTHESIS
static int
LSQUAREBRACKET
static int
MINUS
static int
MINUSEQUAL
static int
MINUSMINUS
static int
MOD
static int
MODEQUAL
static int
MULTI_LINE_COMMENT
static int
NEW
static int
NOT
static int
NOTEQUAL
static int
OCTAL_INT_LITERAL
static int
OCTALDIGIT
static int
OPERATOR
static int
OR
static int
PLUS
static int
PLUSEQUAL
static int
PLUSPLUS
static int
POINTERTO
static int
PREPROCESSOR_OUTPUT_COMMENT
static int
PRIVATE
static int
PROTECTED
static int
PUBLIC
static int
QUESTIONMARK
static int
RCURLYBRACE
static int
REDECLARED
static int
REGISTER
static int
RETURN
static int
RPARENTHESIS
static int
RSQUAREBRACKET
static int
RSTRING
static int
SCOPE
static int
SEMICOLON
static int
SHIFTLEFT
static int
SHIFTLEFTEQUAL
static int
SHIFTRIGHT
static int
SHIFTRIGHTEQUAL
static int
SHORT
static int
SIGNED
static int
SINGLE_LINE_COMMENT
static int
SIZEOF
static int
STAR
static int
STATIC
static int
STRING
static int
STRPREF
static int
STRUCT
static int
SWITCH
static int
TEMPLATE
static int
THIS
static int
THROW
static int
TILDE
static int
TIMESEQUAL
static List<String>
TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind.static int
TRUETOK
static int
TRY
static int
TYPEDEF
static int
UNICODE_ESCAPE
static int
UNION
static int
UNSIGNED
static int
VIRTUAL
static int
VOID
static int
VOLATILE
static int
WHILE
static int
ZERO
-
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
-
SINGLE_LINE_COMMENT
public static final int SINGLE_LINE_COMMENT
- See Also:
- Constant Field Values
-
MULTI_LINE_COMMENT
public static final int MULTI_LINE_COMMENT
- See Also:
- Constant Field Values
-
PREPROCESSOR_OUTPUT_COMMENT
public static final int PREPROCESSOR_OUTPUT_COMMENT
- See Also:
- Constant Field Values
-
LCURLYBRACE
public static final int LCURLYBRACE
- See Also:
- Constant Field Values
-
RCURLYBRACE
public static final int RCURLYBRACE
- See Also:
- Constant Field Values
-
LSQUAREBRACKET
public static final int LSQUAREBRACKET
- See Also:
- Constant Field Values
-
RSQUAREBRACKET
public static final int RSQUAREBRACKET
- See Also:
- Constant Field Values
-
LPARENTHESIS
public static final int LPARENTHESIS
- See Also:
- Constant Field Values
-
RPARENTHESIS
public static final int RPARENTHESIS
- See Also:
- Constant Field Values
-
SCOPE
public static final int SCOPE
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
QUESTIONMARK
public static final int QUESTIONMARK
- See Also:
- Constant Field Values
-
ELLIPSIS
public static final int ELLIPSIS
- See Also:
- Constant Field Values
-
ASSIGNEQUAL
public static final int ASSIGNEQUAL
- See Also:
- Constant Field Values
-
TIMESEQUAL
public static final int TIMESEQUAL
- See Also:
- Constant Field Values
-
DIVIDEEQUAL
public static final int DIVIDEEQUAL
- See Also:
- Constant Field Values
-
MODEQUAL
public static final int MODEQUAL
- See Also:
- Constant Field Values
-
PLUSEQUAL
public static final int PLUSEQUAL
- See Also:
- Constant Field Values
-
MINUSEQUAL
public static final int MINUSEQUAL
- See Also:
- Constant Field Values
-
SHIFTLEFTEQUAL
public static final int SHIFTLEFTEQUAL
- See Also:
- Constant Field Values
-
SHIFTRIGHTEQUAL
public static final int SHIFTRIGHTEQUAL
- See Also:
- Constant Field Values
-
BITWISEANDEQUAL
public static final int BITWISEANDEQUAL
- See Also:
- Constant Field Values
-
BITWISEXOREQUAL
public static final int BITWISEXOREQUAL
- See Also:
- Constant Field Values
-
BITWISEOREQUAL
public static final int BITWISEOREQUAL
- See Also:
- Constant Field Values
-
OR
public static final int OR
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
BITWISEOR
public static final int BITWISEOR
- See Also:
- Constant Field Values
-
BITWISEXOR
public static final int BITWISEXOR
- See Also:
- Constant Field Values
-
AMPERSAND
public static final int AMPERSAND
- See Also:
- Constant Field Values
-
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
-
NOTEQUAL
public static final int NOTEQUAL
- See Also:
- Constant Field Values
-
LESSTHAN
public static final int LESSTHAN
- See Also:
- Constant Field Values
-
GREATERTHAN
public static final int GREATERTHAN
- See Also:
- Constant Field Values
-
LESSTHANOREQUALTO
public static final int LESSTHANOREQUALTO
- See Also:
- Constant Field Values
-
GREATERTHANOREQUALTO
public static final int GREATERTHANOREQUALTO
- See Also:
- Constant Field Values
-
SHIFTLEFT
public static final int SHIFTLEFT
- See Also:
- Constant Field Values
-
SHIFTRIGHT
public static final int SHIFTRIGHT
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
STAR
public static final int STAR
- See Also:
- Constant Field Values
-
DIVIDE
public static final int DIVIDE
- See Also:
- Constant Field Values
-
MOD
public static final int MOD
- See Also:
- Constant Field Values
-
PLUSPLUS
public static final int PLUSPLUS
- See Also:
- Constant Field Values
-
MINUSMINUS
public static final int MINUSMINUS
- See Also:
- Constant Field Values
-
TILDE
public static final int TILDE
- See Also:
- Constant Field Values
-
NOT
public static final int NOT
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
POINTERTO
public static final int POINTERTO
- See Also:
- Constant Field Values
-
DOTSTAR
public static final int DOTSTAR
- See Also:
- Constant Field Values
-
ARROWSTAR
public static final int ARROWSTAR
- See Also:
- Constant Field Values
-
AUTO
public static final int AUTO
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
- See Also:
- Constant Field Values
-
CASE
public static final int CASE
- See Also:
- Constant Field Values
-
CATCH
public static final int CATCH
- See Also:
- Constant Field Values
-
CHAR
public static final int CHAR
- See Also:
- Constant Field Values
-
CONST
public static final int CONST
- See Also:
- Constant Field Values
-
CONTINUE
public static final int CONTINUE
- See Also:
- Constant Field Values
-
_DEFAULT
public static final int _DEFAULT
- See Also:
- Constant Field Values
-
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
-
DO
public static final int DO
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
- See Also:
- Constant Field Values
-
EXTERN
public static final int EXTERN
- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
-
FOR
public static final int FOR
- See Also:
- Constant Field Values
-
FRIEND
public static final int FRIEND
- See Also:
- Constant Field Values
-
GOTO
public static final int GOTO
- See Also:
- Constant Field Values
-
IF
public static final int IF
- See Also:
- Constant Field Values
-
INLINE
public static final int INLINE
- See Also:
- Constant Field Values
-
INT
public static final int INT
- See Also:
- Constant Field Values
-
LONG
public static final int LONG
- See Also:
- Constant Field Values
-
NEW
public static final int NEW
- See Also:
- Constant Field Values
-
PRIVATE
public static final int PRIVATE
- See Also:
- Constant Field Values
-
PROTECTED
public static final int PROTECTED
- See Also:
- Constant Field Values
-
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
-
REDECLARED
public static final int REDECLARED
- See Also:
- Constant Field Values
-
REGISTER
public static final int REGISTER
- See Also:
- Constant Field Values
-
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
-
SHORT
public static final int SHORT
- See Also:
- Constant Field Values
-
SIGNED
public static final int SIGNED
- See Also:
- Constant Field Values
-
SIZEOF
public static final int SIZEOF
- See Also:
- Constant Field Values
-
STATIC
public static final int STATIC
- See Also:
- Constant Field Values
-
STRUCT
public static final int STRUCT
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
SWITCH
public static final int SWITCH
- See Also:
- Constant Field Values
-
TEMPLATE
public static final int TEMPLATE
- See Also:
- Constant Field Values
-
THIS
public static final int THIS
- See Also:
- Constant Field Values
-
TRY
public static final int TRY
- See Also:
- Constant Field Values
-
TYPEDEF
public static final int TYPEDEF
- See Also:
- Constant Field Values
-
UNION
public static final int UNION
- See Also:
- Constant Field Values
-
UNSIGNED
public static final int UNSIGNED
- See Also:
- Constant Field Values
-
VIRTUAL
public static final int VIRTUAL
- See Also:
- Constant Field Values
-
VOID
public static final int VOID
- See Also:
- Constant Field Values
-
VOLATILE
public static final int VOLATILE
- See Also:
- Constant Field Values
-
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
-
OPERATOR
public static final int OPERATOR
- See Also:
- Constant Field Values
-
TRUETOK
public static final int TRUETOK
- See Also:
- Constant Field Values
-
FALSETOK
public static final int FALSETOK
- See Also:
- Constant Field Values
-
THROW
public static final int THROW
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
FINALLY
public static final int FINALLY
- See Also:
- Constant Field Values
-
BINARYDIGIT
public static final int BINARYDIGIT
- See Also:
- Constant Field Values
-
OCTALDIGIT
public static final int OCTALDIGIT
- See Also:
- Constant Field Values
-
DECIMALDIGIT
public static final int DECIMALDIGIT
- See Also:
- Constant Field Values
-
HEXDIGIT
public static final int HEXDIGIT
- See Also:
- Constant Field Values
-
INT_SUFFIX
public static final int INT_SUFFIX
- See Also:
- Constant Field Values
-
ZERO
public static final int ZERO
- See Also:
- Constant Field Values
-
BINARY_INT_LITERAL
public static final int BINARY_INT_LITERAL
- See Also:
- Constant Field Values
-
OCTAL_INT_LITERAL
public static final int OCTAL_INT_LITERAL
- See Also:
- Constant Field Values
-
DECIMAL_INT_LITERAL
public static final int DECIMAL_INT_LITERAL
- See Also:
- Constant Field Values
-
HEXADECIMAL_INT_LITERAL
public static final int HEXADECIMAL_INT_LITERAL
- See Also:
- Constant Field Values
-
INT_IN_FLOAT
public static final int INT_IN_FLOAT
- See Also:
- Constant Field Values
-
EXP_PART
public static final int EXP_PART
- See Also:
- Constant Field Values
-
FLOAT_LITERAL
public static final int FLOAT_LITERAL
- See Also:
- Constant Field Values
-
CHRPREF
public static final int CHRPREF
- See Also:
- Constant Field Values
-
CHARACTER
public static final int CHARACTER
- See Also:
- Constant Field Values
-
STRPREF
public static final int STRPREF
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
RSTRING
public static final int RSTRING
- See Also:
- Constant Field Values
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
UNICODE_ESCAPE
public static final int UNICODE_ESCAPE
- See Also:
- Constant Field Values
-
HEXDIGIT_4
public static final int HEXDIGIT_4
- See Also:
- Constant Field Values
-
ID_CHAR
public static final int ID_CHAR
- See Also:
- Constant Field Values
-
ID_START_CHAR
public static final int ID_START_CHAR
- 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.
-
-