Package net.sourceforge.pmd.lang.cpp.ast
Class CppTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.cpp.ast.CppTokenKinds
-
@InternalApi @Generated("org.javacc.javacc") public final class CppTokenKinds extends ObjectToken kinds (JavaccToken.kind) for this language.
-
-
Field Summary
Fields Modifier and Type Field Description static int_DEFAULTstatic intAMPERSANDstatic intANDstatic intARROWSTARstatic intASSIGNEQUALstatic intATstatic intAUTOstatic intBINARY_INT_LITERALstatic intBINARYDIGITstatic intBITWISEANDEQUALstatic intBITWISEORstatic intBITWISEOREQUALstatic intBITWISEXORstatic intBITWISEXOREQUALstatic intBREAKstatic intCASEstatic intCATCHstatic intCHARstatic intCHARACTERstatic intCHRPREFstatic intCLASSstatic intCOLONstatic intCOMMAstatic intCONSTstatic intCONTINUEstatic intDECIMAL_INT_LITERALstatic intDECIMALDIGITstatic intDELETEstatic intDIVIDEstatic intDIVIDEEQUALstatic intDOstatic intDOTstatic intDOTSTARstatic intDOUBLEstatic intELLIPSISstatic intELSEstatic intENUMstatic intEOFstatic intEQUALstatic intEXP_PARTstatic intEXTERNstatic intFALSETOKstatic intFINALLYstatic intFLOATstatic intFLOAT_LITERALstatic intFORstatic intFRIENDstatic intGOTOstatic intGREATERTHANstatic intGREATERTHANOREQUALTOstatic intHEXADECIMAL_INT_LITERALstatic intHEXDIGITstatic intHEXDIGIT_4static intIDstatic intID_CHARstatic intID_START_CHARstatic intIFstatic intINLINEstatic intINTstatic intINT_IN_FLOATstatic intINT_SUFFIXstatic intLCURLYBRACEstatic intLESSTHANstatic intLESSTHANOREQUALTOstatic intLONGstatic intLPARENTHESISstatic intLSQUAREBRACKETstatic intMINUSstatic intMINUSEQUALstatic intMINUSMINUSstatic intMODstatic intMODEQUALstatic intMULTI_LINE_COMMENTstatic intNEWstatic intNOTstatic intNOTEQUALstatic intOCTAL_INT_LITERALstatic intOCTALDIGITstatic intOPERATORstatic intORstatic intPLUSstatic intPLUSEQUALstatic intPLUSPLUSstatic intPOINTERTOstatic intPREPROCESSOR_OUTPUT_COMMENTstatic intPRIVATEstatic intPROTECTEDstatic intPUBLICstatic intQUESTIONMARKstatic intRCURLYBRACEstatic intREDECLAREDstatic intREGISTERstatic intRETURNstatic intRPARENTHESISstatic intRSQUAREBRACKETstatic intRSTRINGstatic intSCOPEstatic intSEMICOLONstatic intSHIFTLEFTstatic intSHIFTLEFTEQUALstatic intSHIFTRIGHTstatic intSHIFTRIGHTEQUALstatic intSHORTstatic intSIGNEDstatic intSINGLE_LINE_COMMENTstatic intSIZEOFstatic intSTARstatic intSTATICstatic intSTRINGstatic intSTRPREFstatic intSTRUCTstatic intSWITCHstatic intTEMPLATEstatic intTHISstatic intTHROWstatic intTILDEstatic intTIMESEQUALstatic List<String>TOKEN_NAMESNams of the tokens, each index corresponds to a kind.static intTRUETOKstatic intTRYstatic intTYPEDEFstatic intUNICODE_ESCAPEstatic intUNIONstatic intUNSIGNEDstatic intVIRTUALstatic intVOIDstatic intVOLATILEstatic intWHILEstatic intZERO
-
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 net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken>newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.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 net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.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.
-
-