Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.parser.plsql
Interface SqlTokens

All Known Subinterfaces:
PlsqlTokens
All Known Implementing Classes:
PlsqlDriver, PlsqlLexer, SqlDriver, SqlLexer, SqlPlsqlLexer

public interface SqlTokens

The listing of SQL tokens. The names for the OP_* tokens come straight out of the rdbms code, I didn't invent them. Namespace: TK_*, OP_*.


Field Summary
static int OP_AMPERSAND
          "&"
static int OP_ARROW
          "=>"
static int OP_ASSIGN
          ":="
static int OP_ATSIGN
          "@"
static int OP_base
          Base value for operators.
static int OP_CAT
          "||"
static int OP_COLON
          ":"
static int OP_COMMA
          ","
static int OP_DBLDOT
          ".."
static int OP_DOT
          "."
static int OP_ELLIPSIS
          "..."
static int OP_EQUAL
          "="
static int OP_EXP
          "**"
static int OP_GREATER
          ">"
static int OP_GTEQL
          ">="
static int OP_L_LBL
          "<<"
static int OP_LBRKT
          "["
static int OP_LESS
          "<"
static int OP_LPAREN
          "("
static int OP_LTEQ
          "<="
static int OP_max
          Subtracted from OP_Base, this yields the total count of operators in PL/SQL.
static int OP_MINUS
          "-"
static int OP_NOTEQL1
          "<>"
static int OP_NOTEQL2
          "!="
static int OP_NOTEQL3
          "^="
static int OP_NOTEQL4
          "~="
static int OP_OR
          "|"
static int OP_OUTERJOIN
          "(+)"
static int OP_PERCENT
          "%"
static int OP_PLUS
          "+"
static int OP_R_LBL
          ">>"
static int OP_RBRKT
          "]"
static int OP_RPAREN
          ")"
static int OP_SEMICLN
          ";"
static int OP_SHRIEK
          "!"
static int OP_SLASH
          "/"
static int OP_STAR
          "*"
static java.lang.String[] OP_words
          String array, one for each OP token.
static int TK_BIND_VAR
          Special token for bind variables.
static int TK_EOS
          Constant specifying EOS.
static int TK_IDENTIFIER
          Constant for an identifier.
static int TK_invalid
          Not a valid token value, intended to be used as the default value for local variables containing token values.
static int TK_INVALID
          Constant for an unknown character
static int TK_MULTI_COMMENT
          Constant for a SQL multi-line comment.
static int TK_N
          Constant for numeric literals.
static int TK_QUOTED_IDENTIFIER
          Constant for quoted identifiers.
static int TK_SINGLE_COMMENT
          Constant for a SQL single-line comment.
static int TK_STRING
          Constant for character literals.
 

Field Detail

TK_invalid

static final int TK_invalid
Not a valid token value, intended to be used as the default value for local variables containing token values.

See Also:
Constant Field Values

TK_EOS

static final int TK_EOS
Constant specifying EOS.

See Also:
Constant Field Values

TK_INVALID

static final int TK_INVALID
Constant for an unknown character

See Also:
Constant Field Values

TK_IDENTIFIER

static final int TK_IDENTIFIER
Constant for an identifier.

See Also:
Constant Field Values

TK_QUOTED_IDENTIFIER

static final int TK_QUOTED_IDENTIFIER
Constant for quoted identifiers.

See Also:
Constant Field Values

TK_BIND_VAR

static final int TK_BIND_VAR
Special token for bind variables.

See Also:
Constant Field Values

TK_N

static final int TK_N
Constant for numeric literals.

See Also:
Constant Field Values

TK_STRING

static final int TK_STRING
Constant for character literals.

See Also:
Constant Field Values

TK_SINGLE_COMMENT

static final int TK_SINGLE_COMMENT
Constant for a SQL single-line comment.

See Also:
Constant Field Values

TK_MULTI_COMMENT

static final int TK_MULTI_COMMENT
Constant for a SQL multi-line comment.

See Also:
Constant Field Values

OP_base

static final int 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_AMPERSAND

static final int OP_AMPERSAND
"&"

See Also:
Constant Field Values

OP_ARROW

static final int OP_ARROW
"=>"

See Also:
Constant Field Values

OP_ASSIGN

static final int OP_ASSIGN
":="

See Also:
Constant Field Values

OP_ATSIGN

static final int OP_ATSIGN
"@"

See Also:
Constant Field Values

OP_CAT

static final int OP_CAT
"||"

See Also:
Constant Field Values

OP_COLON

static final int OP_COLON
":"

See Also:
Constant Field Values

OP_COMMA

static final int OP_COMMA
","

See Also:
Constant Field Values

OP_DBLDOT

static final int OP_DBLDOT
".."

See Also:
Constant Field Values

OP_DOT

static final int OP_DOT
"."

See Also:
Constant Field Values

OP_ELLIPSIS

static final int OP_ELLIPSIS
"..."

See Also:
Constant Field Values

OP_EQUAL

static final int OP_EQUAL
"="

See Also:
Constant Field Values

OP_EXP

static final int OP_EXP
"**"

See Also:
Constant Field Values

OP_GREATER

static final int OP_GREATER
">"

See Also:
Constant Field Values

OP_GTEQL

static final int OP_GTEQL
">="

See Also:
Constant Field Values

OP_LBRKT

static final int OP_LBRKT
"["

See Also:
Constant Field Values

OP_LESS

static final int OP_LESS
"<"

See Also:
Constant Field Values

OP_LPAREN

static final int OP_LPAREN
"("

See Also:
Constant Field Values

OP_LTEQ

static final int OP_LTEQ
"<="

See Also:
Constant Field Values

OP_L_LBL

static final int OP_L_LBL
"<<"

See Also:
Constant Field Values

OP_MINUS

static final int OP_MINUS
"-"

See Also:
Constant Field Values

OP_NOTEQL1

static final int OP_NOTEQL1
"<>"

See Also:
Constant Field Values

OP_NOTEQL2

static final int OP_NOTEQL2
"!="

See Also:
Constant Field Values

OP_NOTEQL3

static final int OP_NOTEQL3
"^="

See Also:
Constant Field Values

OP_NOTEQL4

static final int OP_NOTEQL4
"~="

See Also:
Constant Field Values

OP_OR

static final int OP_OR
"|"

See Also:
Constant Field Values

OP_PERCENT

static final int OP_PERCENT
"%"

See Also:
Constant Field Values

OP_PLUS

static final int OP_PLUS
"+"

See Also:
Constant Field Values

OP_RBRKT

static final int OP_RBRKT
"]"

See Also:
Constant Field Values

OP_RPAREN

static final int OP_RPAREN
")"

See Also:
Constant Field Values

OP_R_LBL

static final int OP_R_LBL
">>"

See Also:
Constant Field Values

OP_SEMICLN

static final int OP_SEMICLN
";"

See Also:
Constant Field Values

OP_SHRIEK

static final int OP_SHRIEK
"!"

See Also:
Constant Field Values

OP_SLASH

static final int OP_SLASH
"/"

See Also:
Constant Field Values

OP_STAR

static final int OP_STAR
"*"

See Also:
Constant Field Values

OP_OUTERJOIN

static final int OP_OUTERJOIN
"(+)"

See Also:
Constant Field Values

OP_max

static final int OP_max
Subtracted from OP_Base, this yields the total count of operators in PL/SQL.

See Also:
Constant Field Values

OP_words

static final java.lang.String[] OP_words
String array, one for each OP token.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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