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 int
ANDASSIGN
static int
ASSIGN
static int
AT
static int
AT_AUTORELEASEPOOL
static int
AT_CATCH
static int
AT_CLASS
static int
AT_COMPATIBILITY_ALIAS
static int
AT_DEFS
static int
AT_DYNAMIC
static int
AT_ENCODE
static int
AT_END
static int
AT_FINALLY
static int
AT_IMPLEMENTATION
static int
AT_INTERFACE
static int
AT_OPTIONAL
static int
AT_PACKAGE
static int
AT_PRIVATE
static int
AT_PROPERTY
static int
AT_PROTECTED
static int
AT_PROTOCOL
static int
AT_PUBLIC
static int
AT_REQUIRED
static int
AT_SELECTOR
static int
AT_SYNCHRONIZED
static int
AT_SYNTHESIZE
static int
AT_THROW
static int
AT_TRY
static int
AUTO
static int
BANG
static int
BIT_AND
static int
BIT_OR
static int
BLOCK
static int
BOOL
static int
BOOLEAN
static int
BREAK
static int
CASE
static int
CGFLOAT
static int
CHAR
static int
CHARACTER_LITERAL
static int
CLASS
static int
COLON
static int
CONST
static int
CONTINUE
static int
CSTRING_LITERAL
static int
DECIMAL_CONSTANT
static int
DECIMAL_LITERAL
static int
DECR
static int
DFLT
static int
DIGIT
static int
DO
static int
DOUBLE
static int
ELLIPSIS
static int
ELSE
static int
ENUM
static int
EOF
static int
EQ
static int
ESCAPE_SEQUENCE
static int
EXPONENT
static int
EXPORTED_CALLBACK
static int
EXTERN
static int
FIXED_NUM_TYPE
static int
FLOAT
static int
FLOATING_POINT_LITERAL
static int
FOR
static int
FUNC
static int
GE
static int
GOTO
static int
GT
static int
HEX_CONSTANT
static int
HEX_DIGIT
static int
HEX_LITERAL
static int
HEX_PREFIX
static int
HEX_QUAD
static int
HOOK
static int
IBACTION
static int
IBOUTLET
static int
ID
static int
IDENT
static int
IDENT_NONDIGIT
static int
IF
static int
IMP
static int
INCR
static int
INT32_T
static int
INTEGER_CONSTANT
static int
INTEGER_LITERAL
static int
INTEGER_SUFFIX
static int
LE
static int
LEFT_BRACE
static int
LEFT_PAREN
static int
LEFT_SQUARE
static int
LONG_SUFFIX
static int
LSHIFT
static int
LSHIFTASSIGN
static int
LT
static int
MINUS
static int
MINUSASSIGN
static int
MULTI_LINE_COMMENT
static int
NE
static int
NIL
static int
NONDIGIT
static int
NONDIGIT_UNICODE
static int
NONZERO_DIGIT
static int
NSINTEGER
static int
NSRECT
static int
NSSIZE
static int
NSUINTEGER
static int
OCTAL_CONSTANT
static int
OCTAL_DIGIT
static int
OCTAL_LITERAL
static int
ORASSIGN
static int
PLUS
static int
PLUSASSIGN
static int
POSSIBLE_COCOA_TYPE
static int
POSSIBLE_CORE_TYPE
static int
PROTOCOL_QUALIFIER_EXCEPT_IN
static int
REGISTER
static int
REM
static int
REMASSIGN
static int
RETURN
static int
RIGHT_BRACE
static int
RIGHT_PAREN
static int
RIGHT_SQUARE
static int
RSIGNEDSHIFTASSIGN
static int
RUNSIGNEDSHIFTASSIGN
static int
SC_AND
static int
SC_OR
static int
SCHAR
static int
SEL
static int
SEMICOLON
static int
SIGNED
static int
SINGLE_LINE_COMMENT
static int
SINT32
static int
SIZEOF
static int
SLASH
static int
SLASHASSIGN
static int
STAR
static int
STARASSIGN
static int
STATIC
static int
STRING_LITERAL
static int
STRUCT
static int
SWITCH
static int
TILDE
static List<String>
TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind.static int
TYPEDEF
static int
UCHAR
static int
UNION
static int
UNIVERSAL_CHARACTER_NAME
static int
UNSIGNED
static int
UNSIGNED_SUFFIX
static int
VOID
static int
VOLATILE
static int
WHILE
static int
XOR
static int
XORASSIGN
-
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
-
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.
-
-