Class ObjectiveCTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.objectivec.ast.ObjectiveCTokenKinds
-
@InternalApi public final class ObjectiveCTokenKinds extends Object
Token kinds (JavaccToken.kind) for this language.
-
-
Field Summary
Fields Modifier and Type Field Description static intANDASSIGNstatic intASSIGNstatic intATstatic intAT_AUTORELEASEPOOLstatic intAT_CATCHstatic intAT_CLASSstatic intAT_COMPATIBILITY_ALIASstatic intAT_DEFSstatic intAT_DYNAMICstatic intAT_ENCODEstatic intAT_ENDstatic intAT_FINALLYstatic intAT_IMPLEMENTATIONstatic intAT_INTERFACEstatic intAT_OPTIONALstatic intAT_PACKAGEstatic intAT_PRIVATEstatic intAT_PROPERTYstatic intAT_PROTECTEDstatic intAT_PROTOCOLstatic intAT_PUBLICstatic intAT_REQUIREDstatic intAT_SELECTORstatic intAT_SYNCHRONIZEDstatic intAT_SYNTHESIZEstatic intAT_THROWstatic intAT_TRYstatic intAUTOstatic intBANGstatic intBIT_ANDstatic intBIT_ORstatic intBLOCKstatic intBOOLstatic intBOOLEANstatic intBREAKstatic intCASEstatic intCGFLOATstatic intCHARstatic intCHARACTER_LITERALstatic intCLASSstatic intCOLONstatic intCONSTstatic intCONTINUEstatic intCSTRING_LITERALstatic intDECIMAL_CONSTANTstatic intDECIMAL_LITERALstatic intDECRstatic intDFLTstatic intDIGITstatic intDOstatic intDOUBLEstatic intELLIPSISstatic intELSEstatic intENUMstatic intEOFstatic intEQstatic intESCAPE_SEQUENCEstatic intEXPONENTstatic intEXPORTED_CALLBACKstatic intEXTERNstatic intFIXED_NUM_TYPEstatic intFLOATstatic intFLOATING_POINT_LITERALstatic intFORstatic intFUNCstatic intGEstatic intGOTOstatic intGTstatic intHEX_CONSTANTstatic intHEX_DIGITstatic intHEX_LITERALstatic intHEX_PREFIXstatic intHEX_QUADstatic intHOOKstatic intIBACTIONstatic intIBOUTLETstatic intIDstatic intIDENTstatic intIDENT_NONDIGITstatic intIFstatic intIMPstatic intINCRstatic intINT32_Tstatic intINTEGER_CONSTANTstatic intINTEGER_LITERALstatic intINTEGER_SUFFIXstatic intLEstatic intLEFT_BRACEstatic intLEFT_PARENstatic intLEFT_SQUAREstatic intLONG_SUFFIXstatic intLSHIFTstatic intLSHIFTASSIGNstatic intLTstatic intMINUSstatic intMINUSASSIGNstatic intMULTI_LINE_COMMENTstatic intNEstatic intNILstatic intNONDIGITstatic intNONDIGIT_UNICODEstatic intNONZERO_DIGITstatic intNSINTEGERstatic intNSRECTstatic intNSSIZEstatic intNSUINTEGERstatic intOCTAL_CONSTANTstatic intOCTAL_DIGITstatic intOCTAL_LITERALstatic intORASSIGNstatic intPLUSstatic intPLUSASSIGNstatic intPOSSIBLE_COCOA_TYPEstatic intPOSSIBLE_CORE_TYPEstatic intPROTOCOL_QUALIFIER_EXCEPT_INstatic intREGISTERstatic intREMstatic intREMASSIGNstatic intRETURNstatic intRIGHT_BRACEstatic intRIGHT_PARENstatic intRIGHT_SQUAREstatic intRSIGNEDSHIFTASSIGNstatic intRUNSIGNEDSHIFTASSIGNstatic intSC_ANDstatic intSC_ORstatic intSCHARstatic intSELstatic intSEMICOLONstatic intSIGNEDstatic intSINGLE_LINE_COMMENTstatic intSINT32static intSIZEOFstatic intSLASHstatic intSLASHASSIGNstatic intSTARstatic intSTARASSIGNstatic intSTATICstatic intSTRING_LITERALstatic intSTRUCTstatic intSWITCHstatic intTILDEstatic List<String>TOKEN_NAMESNams of the tokens, each index corresponds to a kind.static intTYPEDEFstatic intUCHARstatic intUNIONstatic intUNIVERSAL_CHARACTER_NAMEstatic intUNSIGNEDstatic intUNSIGNED_SUFFIXstatic intVOIDstatic intVOLATILEstatic intWHILEstatic intXORstatic intXORASSIGN
-
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
-
FUNC
public static final int FUNC
- 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
-
ASSIGN
public static final int ASSIGN
- 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
-
BANG
public static final int BANG
- See Also:
- Constant Field Values
-
TILDE
public static final int TILDE
- See Also:
- Constant Field Values
-
HOOK
public static final int HOOK
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
EQ
public static final int 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
-
NE
public static final int NE
- See Also:
- Constant Field Values
-
SC_OR
public static final int SC_OR
- See Also:
- Constant Field Values
-
SC_AND
public static final int SC_AND
- See Also:
- Constant Field Values
-
INCR
public static final int INCR
- See Also:
- Constant Field Values
-
DECR
public static final int DECR
- 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
-
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
-
BIT_AND
public static final int BIT_AND
- See Also:
- Constant Field Values
-
BIT_OR
public static final int BIT_OR
- See Also:
- Constant Field Values
-
XOR
public static final int XOR
- See Also:
- Constant Field Values
-
REM
public static final int REM
- See Also:
- Constant Field Values
-
LSHIFT
public static final int LSHIFT
- See Also:
- Constant Field Values
-
PLUSASSIGN
public static final int PLUSASSIGN
- See Also:
- Constant Field Values
-
MINUSASSIGN
public static final int MINUSASSIGN
- See Also:
- Constant Field Values
-
STARASSIGN
public static final int STARASSIGN
- See Also:
- Constant Field Values
-
SLASHASSIGN
public static final int SLASHASSIGN
- See Also:
- Constant Field Values
-
ANDASSIGN
public static final int ANDASSIGN
- See Also:
- Constant Field Values
-
ORASSIGN
public static final int ORASSIGN
- See Also:
- Constant Field Values
-
XORASSIGN
public static final int XORASSIGN
- See Also:
- Constant Field Values
-
REMASSIGN
public static final int REMASSIGN
- See Also:
- Constant Field Values
-
LSHIFTASSIGN
public static final int LSHIFTASSIGN
- See Also:
- Constant Field Values
-
RSIGNEDSHIFTASSIGN
public static final int RSIGNEDSHIFTASSIGN
- See Also:
- Constant Field Values
-
RUNSIGNEDSHIFTASSIGN
public static final int RUNSIGNEDSHIFTASSIGN
- See Also:
- Constant Field Values
-
ELLIPSIS
public static final int ELLIPSIS
- See Also:
- Constant Field Values
-
ESCAPE_SEQUENCE
public static final int ESCAPE_SEQUENCE
- See Also:
- Constant Field Values
-
INTEGER_LITERAL
public static final int INTEGER_LITERAL
- See Also:
- Constant Field Values
-
DECIMAL_LITERAL
public static final int DECIMAL_LITERAL
- See Also:
- Constant Field Values
-
HEX_LITERAL
public static final int HEX_LITERAL
- See Also:
- Constant Field Values
-
OCTAL_LITERAL
public static final int OCTAL_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
-
CHARACTER_LITERAL
public static final int CHARACTER_LITERAL
- See Also:
- Constant Field Values
-
STRING_LITERAL
public static final int STRING_LITERAL
- See Also:
- Constant Field Values
-
CSTRING_LITERAL
public static final int CSTRING_LITERAL
- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGIT
- See Also:
- Constant Field Values
-
NONZERO_DIGIT
public static final int NONZERO_DIGIT
- See Also:
- Constant Field Values
-
OCTAL_DIGIT
public static final int OCTAL_DIGIT
- See Also:
- Constant Field Values
-
HEX_DIGIT
public static final int HEX_DIGIT
- See Also:
- Constant Field Values
-
HEX_QUAD
public static final int HEX_QUAD
- See Also:
- Constant Field Values
-
UNSIGNED_SUFFIX
public static final int UNSIGNED_SUFFIX
- See Also:
- Constant Field Values
-
LONG_SUFFIX
public static final int LONG_SUFFIX
- See Also:
- Constant Field Values
-
INTEGER_SUFFIX
public static final int INTEGER_SUFFIX
- See Also:
- Constant Field Values
-
DECIMAL_CONSTANT
public static final int DECIMAL_CONSTANT
- See Also:
- Constant Field Values
-
OCTAL_CONSTANT
public static final int OCTAL_CONSTANT
- See Also:
- Constant Field Values
-
HEX_PREFIX
public static final int HEX_PREFIX
- See Also:
- Constant Field Values
-
HEX_CONSTANT
public static final int HEX_CONSTANT
- See Also:
- Constant Field Values
-
INTEGER_CONSTANT
public static final int INTEGER_CONSTANT
- See Also:
- Constant Field Values
-
FIXED_NUM_TYPE
public static final int FIXED_NUM_TYPE
- See Also:
- Constant Field Values
-
CONTINUE
public static final int CONTINUE
- See Also:
- Constant Field Values
-
VOLATILE
public static final int VOLATILE
- See Also:
- Constant Field Values
-
REGISTER
public static final int REGISTER
- See Also:
- Constant Field Values
-
UNSIGNED
public static final int UNSIGNED
- See Also:
- Constant Field Values
-
UCHAR
public static final int UCHAR
- See Also:
- Constant Field Values
-
TYPEDEF
public static final int TYPEDEF
- See Also:
- Constant Field Values
-
DFLT
public static final int DFLT
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
BOOL
public static final int BOOL
- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
-
SIZEOF
public static final int SIZEOF
- See Also:
- Constant Field Values
-
SWITCH
public static final int SWITCH
- See Also:
- Constant Field Values
-
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
-
EXTERN
public static final int EXTERN
- See Also:
- Constant Field Values
-
STRUCT
public static final int STRUCT
- See Also:
- Constant Field Values
-
STATIC
public static final int STATIC
- See Also:
- Constant Field Values
-
SIGNED
public static final int SIGNED
- See Also:
- Constant Field Values
-
SCHAR
public static final int SCHAR
- See Also:
- Constant Field Values
-
SINT32
public static final int SINT32
- See Also:
- Constant Field Values
-
INT32_T
public static final int INT32_T
- See Also:
- Constant Field Values
-
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
- See Also:
- Constant Field Values
-
UNION
public static final int UNION
- See Also:
- Constant Field Values
-
CONST
public static final int CONST
- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
-
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
-
CASE
public static final int CASE
- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
- See Also:
- Constant Field Values
-
AUTO
public static final int AUTO
- See Also:
- Constant Field Values
-
VOID
public static final int VOID
- See Also:
- Constant Field Values
-
CHAR
public static final int CHAR
- See Also:
- Constant Field Values
-
GOTO
public static final int GOTO
- See Also:
- Constant Field Values
-
FOR
public static final int FOR
- See Also:
- Constant Field Values
-
IF
public static final int IF
- See Also:
- Constant Field Values
-
DO
public static final int DO
- See Also:
- Constant Field Values
-
IBACTION
public static final int IBACTION
- See Also:
- Constant Field Values
-
IBOUTLET
public static final int IBOUTLET
- See Also:
- Constant Field Values
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
SEL
public static final int SEL
- See Also:
- Constant Field Values
-
IMP
public static final int IMP
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
NIL
public static final int NIL
- See Also:
- Constant Field Values
-
PROTOCOL_QUALIFIER_EXCEPT_IN
public static final int PROTOCOL_QUALIFIER_EXCEPT_IN
- See Also:
- Constant Field Values
-
LEFT_PAREN
public static final int LEFT_PAREN
- See Also:
- Constant Field Values
-
RIGHT_PAREN
public static final int RIGHT_PAREN
- See Also:
- Constant Field Values
-
LEFT_SQUARE
public static final int LEFT_SQUARE
- See Also:
- Constant Field Values
-
RIGHT_SQUARE
public static final int RIGHT_SQUARE
- See Also:
- Constant Field Values
-
LEFT_BRACE
public static final int LEFT_BRACE
- See Also:
- Constant Field Values
-
RIGHT_BRACE
public static final int RIGHT_BRACE
- See Also:
- Constant Field Values
-
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
-
AT_IMPLEMENTATION
public static final int AT_IMPLEMENTATION
- See Also:
- Constant Field Values
-
AT_INTERFACE
public static final int AT_INTERFACE
- See Also:
- Constant Field Values
-
AT_PROTOCOL
public static final int AT_PROTOCOL
- See Also:
- Constant Field Values
-
AT_ENCODE
public static final int AT_ENCODE
- See Also:
- Constant Field Values
-
AT_SYNCHRONIZED
public static final int AT_SYNCHRONIZED
- See Also:
- Constant Field Values
-
AT_SELECTOR
public static final int AT_SELECTOR
- See Also:
- Constant Field Values
-
AT_END
public static final int AT_END
- See Also:
- Constant Field Values
-
AT_DEFS
public static final int AT_DEFS
- See Also:
- Constant Field Values
-
AT_CLASS
public static final int AT_CLASS
- See Also:
- Constant Field Values
-
AT_TRY
public static final int AT_TRY
- See Also:
- Constant Field Values
-
AT_THROW
public static final int AT_THROW
- See Also:
- Constant Field Values
-
AT_CATCH
public static final int AT_CATCH
- See Also:
- Constant Field Values
-
AT_FINALLY
public static final int AT_FINALLY
- See Also:
- Constant Field Values
-
AT_PRIVATE
public static final int AT_PRIVATE
- See Also:
- Constant Field Values
-
AT_PACKAGE
public static final int AT_PACKAGE
- See Also:
- Constant Field Values
-
AT_PUBLIC
public static final int AT_PUBLIC
- See Also:
- Constant Field Values
-
AT_PROTECTED
public static final int AT_PROTECTED
- See Also:
- Constant Field Values
-
AT_PROPERTY
public static final int AT_PROPERTY
- See Also:
- Constant Field Values
-
AT_SYNTHESIZE
public static final int AT_SYNTHESIZE
- See Also:
- Constant Field Values
-
AT_DYNAMIC
public static final int AT_DYNAMIC
- See Also:
- Constant Field Values
-
AT_OPTIONAL
public static final int AT_OPTIONAL
- See Also:
- Constant Field Values
-
AT_REQUIRED
public static final int AT_REQUIRED
- See Also:
- Constant Field Values
-
AT_AUTORELEASEPOOL
public static final int AT_AUTORELEASEPOOL
- See Also:
- Constant Field Values
-
AT_COMPATIBILITY_ALIAS
public static final int AT_COMPATIBILITY_ALIAS
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
CGFLOAT
public static final int CGFLOAT
- See Also:
- Constant Field Values
-
NSINTEGER
public static final int NSINTEGER
- See Also:
- Constant Field Values
-
NSRECT
public static final int NSRECT
- See Also:
- Constant Field Values
-
NSSIZE
public static final int NSSIZE
- See Also:
- Constant Field Values
-
NSUINTEGER
public static final int NSUINTEGER
- See Also:
- Constant Field Values
-
POSSIBLE_COCOA_TYPE
public static final int POSSIBLE_COCOA_TYPE
- See Also:
- Constant Field Values
-
POSSIBLE_CORE_TYPE
public static final int POSSIBLE_CORE_TYPE
- See Also:
- Constant Field Values
-
EXPORTED_CALLBACK
public static final int EXPORTED_CALLBACK
- See Also:
- Constant Field Values
-
IDENT
public static final int IDENT
- See Also:
- Constant Field Values
-
IDENT_NONDIGIT
public static final int IDENT_NONDIGIT
- See Also:
- Constant Field Values
-
NONDIGIT
public static final int NONDIGIT
- See Also:
- Constant Field Values
-
NONDIGIT_UNICODE
public static final int NONDIGIT_UNICODE
- See Also:
- Constant Field Values
-
UNIVERSAL_CHARACTER_NAME
public static final int UNIVERSAL_CHARACTER_NAME
- See Also:
- Constant Field Values
-
BLOCK
public static final int BLOCK
- 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.
-
-