Class TokenTypes


  • public final class TokenTypes
    extends Object
    Contains the constants for all the tokens contained in the Abstract Syntax Tree.

    Implementation detail: This class has been introduced to break the circular dependency between packages.

    Author:
    Oliver Burn, Peter Dobratz
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ABSTRACT
      The abstract keyword.
      static int ANNOTATION
      An annotation of a package, type, field, parameter or variable.
      static int ANNOTATION_ARRAY_INIT
      An annotation array member initialisation.
      static int ANNOTATION_DEF
      An annotation declaration.
      static int ANNOTATION_FIELD_DEF
      An annotation field declaration.
      static int ANNOTATION_MEMBER_VALUE_PAIR
      An initialisation of an annotation member with a value.
      static int ANNOTATIONS
      A collection of annotations on a package or enum constant.
      static int ARRAY_DECLARATOR
      An array declaration.
      static int ARRAY_INIT
      An array initialization.
      static int ASSIGN
      The = (assignment) operator.
      static int AT
      An 'at' symbol - signifying an annotation instance or the prefix to the interface literal signifying the definition of an annotation declaration.
      static int BAND
      The & (bitwise AND) operator.
      static int BAND_ASSIGN
      The &= (bitwise AND assignment) operator.
      static int BLOCK_COMMENT_BEGIN
      Beginning of block comment: '/*'.
      static int BLOCK_COMMENT_END
      End of block comment: '* /'.
      static int BNOT
      The ~ (bitwise complement) operator.
      static int BOR
      The | (bitwise OR) operator.
      static int BOR_ASSIGN
      The |= (bitwise OR assignment) operator.
      static int BSR
      The >>> (unsigned shift right) operator.
      static int BSR_ASSIGN
      The >>>= (unsigned right shift assignment) operator.
      static int BXOR
      The ^ (bitwise exclusive OR) operator.
      static int BXOR_ASSIGN
      The ^= (bitwise exclusive OR assignment) operator.
      static int CASE_GROUP
      A group of case clauses.
      static int CHAR_LITERAL
      A character literal.
      static int CLASS_DEF
      A class declaration.
      static int COLON
      The : (colon) operator.
      static int COMMA
      The , (comma) operator.
      static int COMMENT_CONTENT
      Text of single-line or block comment.
      static int CTOR_CALL
      A constructor call.
      static int CTOR_DEF
      A constructor declaration.
      static int DEC
      The -- (prefix decrement) operator.
      static int DIV
      The / (division) operator.
      static int DIV_ASSIGN
      The /= (division assignment) operator.
      static int DO_WHILE
      Literal while in do-while loop.
      static int DOT
      The . (dot) operator.
      static int DOUBLE_COLON
      The :: (double colon) separator.
      static int ELIST
      An expression list.
      static int ELLIPSIS
      A triple dot for variable-length parameters.
      static int EMPTY_STAT
      The empty statement.
      static int ENUM
      The enum keyword.
      static int ENUM_CONSTANT_DEF
      An enum constant declaration.
      static int ENUM_DEF
      An enum declaration.
      static int EOF
      The end of file token.
      static int EQUAL
      The == (equal) operator.
      static int EXPR
      An expression.
      static int EXTENDS_CLAUSE
      An extends clause.
      static int FINAL
      The final keyword.
      static int FOR_CONDITION
      A for loop condition.
      static int FOR_EACH_CLAUSE
      A for-each clause.
      static int FOR_INIT
      A for loop initializer.
      static int FOR_ITERATOR
      A for loop iterator.
      static int GE
      The >= (greater than or equal) operator.
      static int GENERIC_END
      '>' symbol signifying the end of type arguments or type parameters.
      static int GENERIC_START
      '<' symbol signifying the start of type arguments or type parameters.
      static int GT
      The > (greater than) operator.
      static int IDENT
      An identifier.
      static int IMPLEMENTS_CLAUSE
      An implements clause.
      static int IMPORT
      An import declaration.
      static int INC
      The ++ (prefix increment) operator.
      static int INDEX_OP
      The array index operator.
      static int INSTANCE_INIT
      An instance initializer.
      static int INTERFACE_DEF
      An interface declaration.
      static int LABELED_STAT
      A labeled statement.
      static int LAMBDA
      Special lambda symbol '->'.
      static int LAND
      The && (conditional AND) operator.
      static int LCURLY
      A left (curly) brace ({).
      static int LE
      The <= (less than or equal) operator.
      static int LITERAL_ASSERT
      The assert keyword.
      static int LITERAL_BOOLEAN
      The boolean keyword.
      static int LITERAL_BREAK
      The break keyword.
      static int LITERAL_BYTE
      The byte keyword.
      static int LITERAL_CASE
      The case keyword.
      static int LITERAL_CATCH
      The catch keyword.
      static int LITERAL_CHAR
      The char keyword.
      static int LITERAL_CLASS
      The class keyword.
      static int LITERAL_CONTINUE
      The continue keyword.
      static int LITERAL_DEFAULT
      The default keyword.
      static int LITERAL_DO
      The do keyword.
      static int LITERAL_DOUBLE
      The double keyword.
      static int LITERAL_ELSE
      The else keyword.
      static int LITERAL_FALSE
      The false keyword.
      static int LITERAL_FINALLY
      The finally keyword.
      static int LITERAL_FLOAT
      The float keyword.
      static int LITERAL_FOR
      The for keyword.
      static int LITERAL_IF
      The if keyword.
      static int LITERAL_INSTANCEOF
      The instanceof operator.
      static int LITERAL_INT
      The int keyword.
      static int LITERAL_INTERFACE
      The interface keyword.
      static int LITERAL_LONG
      The long keyword.
      static int LITERAL_NATIVE
      The native keyword.
      static int LITERAL_NEW
      The new keyword.
      static int LITERAL_NULL
      The null keyword.
      static int LITERAL_PRIVATE
      The private keyword.
      static int LITERAL_PROTECTED
      The protected keyword.
      static int LITERAL_PUBLIC
      The public keyword.
      static int LITERAL_RETURN
      The return keyword.
      static int LITERAL_SHORT
      The short keyword.
      static int LITERAL_STATIC
      The static keyword.
      static int LITERAL_SUPER
      The super keyword.
      static int LITERAL_SWITCH
      The switch keyword.
      static int LITERAL_SYNCHRONIZED
      The synchronized keyword.
      static int LITERAL_THIS
      The this keyword.
      static int LITERAL_THROW
      The throw keyword.
      static int LITERAL_THROWS
      The throws keyword.
      static int LITERAL_TRANSIENT
      The transient keyword.
      static int LITERAL_TRUE
      The true keyword.
      static int LITERAL_TRY
      The try keyword.
      static int LITERAL_VOID
      The void keyword.
      static int LITERAL_VOLATILE
      The volatile keyword.
      static int LITERAL_WHILE
      The while keyword.
      static int LNOT
      The ! (logical complement) operator.
      static int LOR
      The || (conditional OR) operator.
      static int LPAREN
      A left parenthesis (().
      static int LT
      The < (less than) operator.
      static int METHOD_CALL
      A method call.
      static int METHOD_DEF
      A method declaration.
      static int METHOD_REF
      A reference to a method or constructor without arguments.
      static int MINUS
      The - (subtraction) operator.
      static int MINUS_ASSIGN
      The -= (subtraction assignment) operator.
      static int MOD
      The % (remainder) operator.
      static int MOD_ASSIGN
      The %= (remainder assignment) operator.
      static int MODIFIERS
      Modifiers for type, method, and field declarations.
      static int NOT_EQUAL
      The != (not equal) operator.
      static int NUM_DOUBLE
      A double precision floating point literal.
      static int NUM_FLOAT
      A single precision floating point literal.
      static int NUM_INT
      An integer literal.
      static int NUM_LONG
      A long integer literal.
      static int OBJBLOCK
      An object block.
      static int PACKAGE_DEF
      The package declaration.
      static int PARAMETER_DEF
      A parameter declaration.
      static int PARAMETERS
      A list of parameters to a method or constructor.
      static int PLUS
      The + (addition) operator.
      static int PLUS_ASSIGN
      The += (addition assignment) operator.
      static int POST_DEC
      The -- (postfix decrement) operator.
      static int POST_INC
      The ++ (postfix increment) operator.
      static int QUESTION
      The ? (conditional) operator.
      static int RBRACK
      The ] symbol.
      static int RCURLY
      A right (curly) brace (}).
      static int RESOURCE
      A resource in the Java 7 try-with-resources construct.
      static int RESOURCE_SPECIFICATION
      The Java 7 try-with-resources construct.
      static int RESOURCES
      A list of resources in the Java 7 try-with-resources construct.
      static int RPAREN
      A right parenthesis ()).
      static int SEMI
      The statement terminator (;).
      static int SINGLE_LINE_COMMENT
      Beginning of single line comment: '//'.
      static int SL
      The << (shift left) operator.
      static int SL_ASSIGN
      The <<= (left shift assignment) operator.
      static int SLIST
      A list of statements.
      static int SR
      The >> (signed shift right) operator.
      static int SR_ASSIGN
      The >>= (signed right shift assignment) operator.
      static int STAR
      The * (multiplication or wildcard) operator.
      static int STAR_ASSIGN
      The *= (multiplication assignment) operator.
      static int STATIC_IMPORT
      A static import declaration.
      static int STATIC_INIT
      A static initialization block.
      static int STRICTFP
      The strictfp keyword.
      static int STRING_LITERAL
      A string literal.
      static int SUPER_CTOR_CALL
      A super constructor call.
      static int TYPE
      A type.
      static int TYPE_ARGUMENT
      A type arguments to a type reference or a method/ctor invocation.
      static int TYPE_ARGUMENTS
      A list of type arguments to a type reference or a method/ctor invocation.
      static int TYPE_EXTENSION_AND
      '&' symbol when used in a generic upper or lower bounds constrain e.g.
      static int TYPE_LOWER_BOUNDS
      A lower bounds on a wildcard type argument.
      static int TYPE_PARAMETER
      A type parameter to a class, interface or method definition.
      static int TYPE_PARAMETERS
      A list of type parameters to a class, interface or method definition.
      static int TYPE_UPPER_BOUNDS
      An upper bounds on a wildcard type argument or type parameter.
      static int TYPECAST
      A type-cast.
      static int UNARY_MINUS
      The - (unary minus) operator.
      static int UNARY_PLUS
      The + (unary plus) operator.
      static int VARIABLE_DEF
      A field or local variable declaration.
      static int WILDCARD_TYPE
      The type that refers to all types.