Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.parser.java.v2
Interface JavaTokens

All Known Subinterfaces:
JavaConstants, JavaOperators
All Known Implementing Classes:
AbstractAnnotation, AbstractClass, AbstractElement, AbstractField, AbstractMethod, AbstractPackage, AbstractType, AbstractVariable, AnnotationElementValueInsightDataItem, AnnotationFilter, BaseFileProvider.BaseClass, BaseFileProvider.BasePackage, BindingRegistry, CallerContext, CastedMethod, ClassHierarchy, oracle.javatools.parser.java.v2.classfile.ClClass, CommonUtilities, Conversions, oracle.jdevimpl.java.insight.InsightDataItem, oracle.javatools.parser.java.v2.internal.InternalUtilities, JavaLexer, LexerLiteral, LexerUtilities, MethodHierarchy, NullProvider, PrimitiveType, QuickComponent, QuickHasName, QuickHasType, QuickLocalVariable, QuickMethod, QuickSignatureParser, SignatureHasType, SignatureParser, SimplifyTypeHelper, SourceFactory, SourceVisitor, oracle.javatools.parser.java.v2.internal.symbol.Sym.SymTraversal, oracle.javatools.parser.java.v2.internal.symbol.SymUtilities, Value, oracle.jdevimpl.java.insight.WrappedInsightDataItem, WrapperClass, WrapperField, WrapperLocalVariable, WrapperMethod, WrapperPackage

public interface JavaTokens

The JavaTokens interface defines the constants for the various tokens of the Java Language. Details of the language taken from Java Language Specification

See Also:
LexerToken, JavaLexer

Field Summary
static short[] DW_values
          Token array of duplicate keywords.
static java.lang.String[] DW_words
          String array of duplicate keywords.
static byte J2SE_13
          Indicates that this lexer will be used for the j2se 1.3 language.
static byte J2SE_14
          Indicates that this lexer will be used for the j2se 1.4 language.
static byte J2SE_15
          Indicates that this lexer will be used for the j2se 1.5 language.
static byte J2SE_16
          Indicates that this lexer will be used for the j2se 1.6 language.
static byte J2SE_17
          Indicates that this lexer will be used for the j2se 1.7 language.
static byte J2SE_MAX
          The highest JDK version supported
static byte J2SE_MIN
          The lowest JDK version supported
static short KW_ABSTRACT
           
static short KW_ASSERT
           
static short KW_base
          Base value for keywords.
static short KW_BOOLEAN
           
static short KW_BREAK
           
static short KW_BYTE
           
static short KW_CASE
           
static short KW_CATCH
           
static short KW_CHAR
           
static short KW_CLASS
           
static short KW_CONST
           
static short KW_CONTINUE
           
static short KW_DEFAULT
           
static short KW_DO
           
static short KW_DOUBLE
           
static short KW_ELSE
           
static short KW_ENUM
           
static short KW_EXTENDS
           
static short KW_FINAL
           
static short KW_FINALLY
           
static short KW_FLOAT
           
static short KW_FOR
           
static short KW_GOTO
           
static short KW_IF
           
static short KW_IMPLEMENTS
           
static short KW_IMPORT
           
static short KW_INSTANCEOF
           
static short KW_INT
           
static short KW_INTERFACE
           
static short KW_j2se13_max
          Subtracted from KW_base, this yields the count of j2se 1.3 keywords.
static short KW_j2se14_max
          Subtracted from KW_base, this yields the count of j2se 1.4 keywords.
static short KW_j2se15_max
          Subtracted from KW_base, this yields the count of j2se 1.5 keywords.
static short KW_j2se16_max
          JDK 1.6 has the same keywords as 1.5
static short KW_LONG
           
static short KW_max
          Subtracted from KW_base, this yields the total count of keywords.
static short KW_NATIVE
           
static short KW_NEW
           
static short KW_PACKAGE
           
static short KW_PRIVATE
           
static short KW_PROTECTED
           
static short KW_PUBLIC
           
static short KW_RETURN
           
static short KW_SHORT
           
static short KW_STATIC
           
static short KW_STRICTFP
           
static short KW_SUPER
           
static short KW_SWITCH
           
static short KW_SYNCHRONIZED
           
static short KW_THIS
           
static short KW_THROW
           
static short KW_THROWS
           
static short KW_TRANSIENT
           
static short KW_TRY
           
static short KW_VOID
           
static short KW_VOLATILE
           
static short KW_WHILE
           
static java.lang.String[] KW_words
          String array of keywords.
static short OP_AND_ASG
          "&="
static short OP_ASG
          "="
static short OP_AT
          "@"
static short OP_base
          Base value for operators.
static short OP_BINAND
          "&"
static short[] OP_binary
          A listing of all OP_* tokens that are part of a binary operator.
static short OP_BINNOT
          "~"
static short OP_BINOR
          "|"
static short OP_BINXOR
          "^"
static short OP_COLON
          ":"
static short OP_COMMA
          ","
static short OP_DEC
          "--"
static short OP_DIV
          "/"
static short OP_DIV_ASG
          "/="
static short OP_DOT
          "."
static short OP_ELLIPSIS
          "..."
static short OP_EQ
          "=="
static short OP_GE
          ">="
static short OP_GT
          ">"
static short OP_HASH
          "#"
static short OP_INC
          "++"
static short OP_LBRACE
          "{"
static short OP_LBRACKET
          "["
static short OP_LE
          "<="
static short OP_LOGAND
          "&&"
static short OP_LOGNOT
          "!"
static short OP_LOGOR
          "||"
static short OP_LPAREN
          "("
static short OP_LSH
          "<<"
static short OP_LSH_ASG
          "<<="
static short OP_LT
          "<"
static short OP_max
          Subtracted from OP_base, this yields the total count of operators.
static short OP_MINUS
          "-"
static short OP_MINUS_ASG
          "-="
static short OP_MOD
          "%"
static short OP_MOD_ASG
          "%="
static short OP_MUL
          "*"
static short OP_MUL_ASG
          "*="
static short OP_NE
          "!="
static short OP_OR_ASG
          "|="
static short OP_PLUS
          "+"
static short OP_PLUS_ASG
          "+="
static short[] OP_prefix
          A listing of all OP_* tokens that are part of a unary prefix operator.
static short OP_QUES
          "?"
static short OP_RBRACE
          "}"
static short OP_RBRACKET
          "]"
static short OP_RPAREN
          ")"
static short OP_RSH
          ">>"
static short OP_RSH_ASG
          ">>="
static short OP_SEMI
          ";"
static short OP_URSH
          ">>>"
static short OP_URSH_ASG
          ">>>="
static java.lang.String[] OP_words
          String array, one for each OP token.
static short OP_XOR_ASG
          "^="
static short TK_BOOLEAN_LITERAL
          Constant for boolean (true, false) literals.
static short TK_CHAR_LITERAL
          Constant for character literals.
static short TK_DOC_COMMENT
          Constant for a JavaDoc comment.
static short TK_DOUBLE_LITERAL
          Constant for double literals.
static short TK_EOF
          Declared here for convenience.
static short TK_FLOAT_LITERAL
          Constant for float literals.
static short TK_IDENTIFIER
          Constant for an identifier which is not a literal or a Java reserved word.
static short TK_INT_LITERAL
          Constant for integer (decimal, hexadecimal, octal) literals.
static short TK_LITERAL_base
          Minimum (inclusive) literal token.
static short TK_LITERAL_max
          Maximum exclusive literal token.
static short TK_LONG_LITERAL
          Constant for long (decimal, hexadecimal, octal) literals.
static int TK_max
          The exclusive maximum for all token values.
static short TK_MULTI_COMMENT
          Constant for a Java multi-line comment.
static short TK_NULL_LITERAL
          Constant for the null literal.
static short TK_SINGLE_COMMENT
          Constant for a Java single-line comment.
static short TK_SQLJ
          Constant for a SQLJ statement embedded inside a Java file.
static short TK_STRING_LITERAL
          Constant for string literals.
static short TK_WHITESPACE
          Constant for whitespace.
 

Field Detail

J2SE_13

static final byte J2SE_13
Indicates that this lexer will be used for the j2se 1.3 language.

See Also:
Constant Field Values

J2SE_14

static final byte J2SE_14
Indicates that this lexer will be used for the j2se 1.4 language.

FYI, the j2me toolkit 2.2 compiles against the j2se 1.4 language.

See Also:
Constant Field Values

J2SE_15

static final byte J2SE_15
Indicates that this lexer will be used for the j2se 1.5 language.

See Also:
Constant Field Values

J2SE_16

static final byte J2SE_16
Indicates that this lexer will be used for the j2se 1.6 language.

See Also:
Constant Field Values

J2SE_17

static final byte J2SE_17
Indicates that this lexer will be used for the j2se 1.7 language.

See Also:
Constant Field Values

J2SE_MIN

static final byte J2SE_MIN
The lowest JDK version supported

See Also:
Constant Field Values

J2SE_MAX

static final byte J2SE_MAX
The highest JDK version supported

See Also:
Constant Field Values

TK_EOF

static final short TK_EOF
Declared here for convenience. Note that this may cause ambiguity compile errors in Lexer subclasses.

See Also:
Constant Field Values

TK_IDENTIFIER

static final short TK_IDENTIFIER
Constant for an identifier which is not a literal or a Java reserved word.

See Also:
Constant Field Values

TK_WHITESPACE

static final short TK_WHITESPACE
Constant for whitespace. The lexer will never actually return a TK_WHITESPACE token. This constant is provided as a placeholder for code that need to label whitespace amongst other non-whitespace tokens.

See Also:
Constant Field Values

TK_SQLJ

static final short TK_SQLJ
Constant for a SQLJ statement embedded inside a Java file. This are blocks starting with #sql and ending with a semicolon (;).

See Also:
Constant Field Values

TK_LITERAL_base

static final short TK_LITERAL_base
Minimum (inclusive) literal token.

See Also:
Constant Field Values

TK_INT_LITERAL

static final short TK_INT_LITERAL
Constant for integer (decimal, hexadecimal, octal) literals.

See Also:
Constant Field Values

TK_LONG_LITERAL

static final short TK_LONG_LITERAL
Constant for long (decimal, hexadecimal, octal) literals.

See Also:
Constant Field Values

TK_FLOAT_LITERAL

static final short TK_FLOAT_LITERAL
Constant for float literals.

See Also:
Constant Field Values

TK_DOUBLE_LITERAL

static final short TK_DOUBLE_LITERAL
Constant for double literals.

See Also:
Constant Field Values

TK_BOOLEAN_LITERAL

static final short TK_BOOLEAN_LITERAL
Constant for boolean (true, false) literals. Note that true and false are not really Java reserved words, but literal values.

See Also:
Constant Field Values

TK_CHAR_LITERAL

static final short TK_CHAR_LITERAL
Constant for character literals.

See Also:
Constant Field Values

TK_STRING_LITERAL

static final short TK_STRING_LITERAL
Constant for string literals.

See Also:
Constant Field Values

TK_NULL_LITERAL

static final short TK_NULL_LITERAL
Constant for the null literal. Like boolean literals, the null literal is not a Java reserved word.

See Also:
Constant Field Values

TK_LITERAL_max

static final short TK_LITERAL_max
Maximum exclusive literal token.

See Also:
Constant Field Values

TK_SINGLE_COMMENT

static final short TK_SINGLE_COMMENT
Constant for a Java single-line comment.

See Also:
Constant Field Values

TK_MULTI_COMMENT

static final short TK_MULTI_COMMENT
Constant for a Java multi-line comment.

See Also:
Constant Field Values

TK_DOC_COMMENT

static final short TK_DOC_COMMENT
Constant for a JavaDoc comment.

See Also:
Constant Field Values

OP_base

static final short OP_base
Base value for operators. I think "punctuation" or "delimiters" is more accurate, but I couldn't get a good two-letter prefix out of that. :)

See Also:
Constant Field Values

OP_AND_ASG

static final short OP_AND_ASG
"&="

See Also:
Constant Field Values

OP_ASG

static final short OP_ASG
"="

See Also:
Constant Field Values

OP_BINAND

static final short OP_BINAND
"&"

See Also:
Constant Field Values

OP_BINNOT

static final short OP_BINNOT
"~"

See Also:
Constant Field Values

OP_BINOR

static final short OP_BINOR
"|"

See Also:
Constant Field Values

OP_BINXOR

static final short OP_BINXOR
"^"

See Also:
Constant Field Values

OP_COLON

static final short OP_COLON
":"

See Also:
Constant Field Values

OP_COMMA

static final short OP_COMMA
","

See Also:
Constant Field Values

OP_DEC

static final short OP_DEC
"--"

See Also:
Constant Field Values

OP_DIV

static final short OP_DIV
"/"

See Also:
Constant Field Values

OP_DIV_ASG

static final short OP_DIV_ASG
"/="

See Also:
Constant Field Values

OP_DOT

static final short OP_DOT
"."

See Also:
Constant Field Values

OP_EQ

static final short OP_EQ
"=="

See Also:
Constant Field Values

OP_GE

static final short OP_GE
">="

See Also:
Constant Field Values

OP_GT

static final short OP_GT
">"

See Also:
Constant Field Values

OP_HASH

static final short OP_HASH
"#"

See Also:
Constant Field Values

OP_INC

static final short OP_INC
"++"

See Also:
Constant Field Values

OP_LBRACE

static final short OP_LBRACE
"{"

See Also:
Constant Field Values

OP_LBRACKET

static final short OP_LBRACKET
"["

See Also:
Constant Field Values

OP_LE

static final short OP_LE
"<="

See Also:
Constant Field Values

OP_LOGAND

static final short OP_LOGAND
"&&"

See Also:
Constant Field Values

OP_LOGNOT

static final short OP_LOGNOT
"!"

See Also:
Constant Field Values

OP_LOGOR

static final short OP_LOGOR
"||"

See Also:
Constant Field Values

OP_LPAREN

static final short OP_LPAREN
"("

See Also:
Constant Field Values

OP_LSH

static final short OP_LSH
"<<"

See Also:
Constant Field Values

OP_LSH_ASG

static final short OP_LSH_ASG
"<<="

See Also:
Constant Field Values

OP_LT

static final short OP_LT
"<"

See Also:
Constant Field Values

OP_MINUS

static final short OP_MINUS
"-"

See Also:
Constant Field Values

OP_MINUS_ASG

static final short OP_MINUS_ASG
"-="

See Also:
Constant Field Values

OP_MOD

static final short OP_MOD
"%"

See Also:
Constant Field Values

OP_MOD_ASG

static final short OP_MOD_ASG
"%="

See Also:
Constant Field Values

OP_MUL

static final short OP_MUL
"*"

See Also:
Constant Field Values

OP_MUL_ASG

static final short OP_MUL_ASG
"*="

See Also:
Constant Field Values

OP_NE

static final short OP_NE
"!="

See Also:
Constant Field Values

OP_OR_ASG

static final short OP_OR_ASG
"|="

See Also:
Constant Field Values

OP_PLUS

static final short OP_PLUS
"+"

See Also:
Constant Field Values

OP_PLUS_ASG

static final short OP_PLUS_ASG
"+="

See Also:
Constant Field Values

OP_QUES

static final short OP_QUES
"?"

See Also:
Constant Field Values

OP_RBRACE

static final short OP_RBRACE
"}"

See Also:
Constant Field Values

OP_RBRACKET

static final short OP_RBRACKET
"]"

See Also:
Constant Field Values

OP_RPAREN

static final short OP_RPAREN
")"

See Also:
Constant Field Values

OP_RSH

static final short OP_RSH
">>"

See Also:
Constant Field Values

OP_RSH_ASG

static final short OP_RSH_ASG
">>="

See Also:
Constant Field Values

OP_SEMI

static final short OP_SEMI
";"

See Also:
Constant Field Values

OP_URSH

static final short OP_URSH
">>>"

See Also:
Constant Field Values

OP_URSH_ASG

static final short OP_URSH_ASG
">>>="

See Also:
Constant Field Values

OP_XOR_ASG

static final short OP_XOR_ASG
"^="

See Also:
Constant Field Values

OP_AT

static final short OP_AT
"@"

See Also:
Constant Field Values

OP_ELLIPSIS

static final short OP_ELLIPSIS
"..."

See Also:
Constant Field Values

OP_max

static final short OP_max
Subtracted from OP_base, this yields the total count of operators.

See Also:
Constant Field Values

OP_words

static final java.lang.String[] OP_words
String array, one for each OP token. OP_max - OP_base == OP_words.length [ 0 ] is for OP_base.


OP_prefix

static final short[] OP_prefix
A listing of all OP_* tokens that are part of a unary prefix operator.


OP_binary

static final short[] OP_binary
A listing of all OP_* tokens that are part of a binary operator. This includes arithmetic, assignment, bitwise, comparison, and conditional binary operators. Also includes OP_DOT. Does not include delimiters, most notably OP_COMMA.


KW_base

static final short KW_base
Base value for keywords.

See Also:
Constant Field Values

KW_ABSTRACT

static final short KW_ABSTRACT
See Also:
Constant Field Values

KW_BOOLEAN

static final short KW_BOOLEAN
See Also:
Constant Field Values

KW_BREAK

static final short KW_BREAK
See Also:
Constant Field Values

KW_BYTE

static final short KW_BYTE
See Also:
Constant Field Values

KW_CASE

static final short KW_CASE
See Also:
Constant Field Values

KW_CATCH

static final short KW_CATCH
See Also:
Constant Field Values

KW_CHAR

static final short KW_CHAR
See Also:
Constant Field Values

KW_CLASS

static final short KW_CLASS
See Also:
Constant Field Values

KW_CONST

static final short KW_CONST
See Also:
Constant Field Values

KW_CONTINUE

static final short KW_CONTINUE
See Also:
Constant Field Values

KW_DEFAULT

static final short KW_DEFAULT
See Also:
Constant Field Values

KW_DO

static final short KW_DO
See Also:
Constant Field Values

KW_DOUBLE

static final short KW_DOUBLE
See Also:
Constant Field Values

KW_ELSE

static final short KW_ELSE
See Also:
Constant Field Values

KW_EXTENDS

static final short KW_EXTENDS
See Also:
Constant Field Values

KW_FINAL

static final short KW_FINAL
See Also:
Constant Field Values

KW_FINALLY

static final short KW_FINALLY
See Also:
Constant Field Values

KW_FLOAT

static final short KW_FLOAT
See Also:
Constant Field Values

KW_FOR

static final short KW_FOR
See Also:
Constant Field Values

KW_GOTO

static final short KW_GOTO
See Also:
Constant Field Values

KW_IF

static final short KW_IF
See Also:
Constant Field Values

KW_IMPLEMENTS

static final short KW_IMPLEMENTS
See Also:
Constant Field Values

KW_IMPORT

static final short KW_IMPORT
See Also:
Constant Field Values

KW_INSTANCEOF

static final short KW_INSTANCEOF
See Also:
Constant Field Values

KW_INT

static final short KW_INT
See Also:
Constant Field Values

KW_INTERFACE

static final short KW_INTERFACE
See Also:
Constant Field Values

KW_LONG

static final short KW_LONG
See Also:
Constant Field Values

KW_NATIVE

static final short KW_NATIVE
See Also:
Constant Field Values

KW_NEW

static final short KW_NEW
See Also:
Constant Field Values

KW_PACKAGE

static final short KW_PACKAGE
See Also:
Constant Field Values

KW_PRIVATE

static final short KW_PRIVATE
See Also:
Constant Field Values

KW_PROTECTED

static final short KW_PROTECTED
See Also:
Constant Field Values

KW_PUBLIC

static final short KW_PUBLIC
See Also:
Constant Field Values

KW_RETURN

static final short KW_RETURN
See Also:
Constant Field Values

KW_SHORT

static final short KW_SHORT
See Also:
Constant Field Values

KW_STATIC

static final short KW_STATIC
See Also:
Constant Field Values

KW_STRICTFP

static final short KW_STRICTFP
See Also:
Constant Field Values

KW_SUPER

static final short KW_SUPER
See Also:
Constant Field Values

KW_SWITCH

static final short KW_SWITCH
See Also:
Constant Field Values

KW_SYNCHRONIZED

static final short KW_SYNCHRONIZED
See Also:
Constant Field Values

KW_THIS

static final short KW_THIS
See Also:
Constant Field Values

KW_THROW

static final short KW_THROW
See Also:
Constant Field Values

KW_THROWS

static final short KW_THROWS
See Also:
Constant Field Values

KW_TRANSIENT

static final short KW_TRANSIENT
See Also:
Constant Field Values

KW_TRY

static final short KW_TRY
See Also:
Constant Field Values

KW_VOID

static final short KW_VOID
See Also:
Constant Field Values

KW_VOLATILE

static final short KW_VOLATILE
See Also:
Constant Field Values

KW_WHILE

static final short KW_WHILE
See Also:
Constant Field Values

KW_ASSERT

static final short KW_ASSERT
See Also:
Constant Field Values

KW_ENUM

static final short KW_ENUM
See Also:
Constant Field Values

KW_max

static final short KW_max
Subtracted from KW_base, this yields the total count of keywords.

See Also:
Constant Field Values

KW_j2se13_max

static final short KW_j2se13_max
Subtracted from KW_base, this yields the count of j2se 1.3 keywords.

See Also:
Constant Field Values

KW_j2se14_max

static final short KW_j2se14_max
Subtracted from KW_base, this yields the count of j2se 1.4 keywords.

See Also:
Constant Field Values

KW_j2se15_max

static final short KW_j2se15_max
Subtracted from KW_base, this yields the count of j2se 1.5 keywords.

See Also:
Constant Field Values

KW_j2se16_max

static final short KW_j2se16_max
JDK 1.6 has the same keywords as 1.5

See Also:
Constant Field Values

KW_words

static final java.lang.String[] KW_words
String array of keywords. KW_max - KW_base == KW_words.length [ 0 ] is for KW_base.


DW_words

static final java.lang.String[] DW_words
String array of duplicate keywords. "Duplicate keyword" means a keyword that has the same token value as another token. It's a term used in the RDBMS SQL lexer.


DW_values

static final short[] DW_values
Token array of duplicate keywords.


TK_max

static final int TK_max
The exclusive maximum for all token values.

See Also:
Constant Field Values

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.