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

E13403-04

oracle.javatools.parser.plsql
Class PlsqlParser

java.lang.Object
  extended by oracle.javatools.parser.plsql.PlsqlParser

public class PlsqlParser
extends java.lang.Object

Entrypoint to the plsql parser.


Nested Class Summary
static class PlsqlParser.ParsingOptions
          ParsingOptions is an encapsulation of the various parsing options available in the PlsqlParser.
 
Field Summary
static int INPUT_default
           
static int INPUT_PLS_SRC
          Input type.
static int INPUT_SQL_BEX
          Input type.
protected static int INPUT_SQL_QCPI
          Input type.
 
Constructor Summary
PlsqlParser()
           
 
Method Summary
static Lexer createPlsqlLexer()
          Lexer will use PlsqlTokens.
static Lexer createSqlLexer()
          Lexer will use SqlTokens and SqlKeywords.
static PlsqlRoot parse(ReadTextBuffer textBuffer, PlsqlParser.ParsingOptions options)
           
static PlsqlRoot parsePlsql(ReadTextBuffer textBuffer)
          Parses the input as INPUT_PLS_SRC.
static PlsqlRoot parseSql(ReadTextBuffer textBuffer)
          Parses the input as INPUT_SQL_QCPI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_PLS_SRC

public static final int INPUT_PLS_SRC
Input type. Input is a PL/Sql SouRCe file.

See Also:
Constant Field Values

INPUT_SQL_QCPI

protected static final int INPUT_SQL_QCPI
Input type. Input is a command for the common SQL frontend.

See Also:
Constant Field Values

INPUT_SQL_BEX

public static final int INPUT_SQL_BEX
Input type. Input is a SQL Boolean EXpression.

See Also:
Constant Field Values

INPUT_default

public static final int INPUT_default
See Also:
Constant Field Values
Constructor Detail

PlsqlParser

public PlsqlParser()
Method Detail

createPlsqlLexer

public static Lexer createPlsqlLexer()
Lexer will use PlsqlTokens.

Returns:
A Lexer implementation for the Plsql grammar

createSqlLexer

public static Lexer createSqlLexer()
Lexer will use SqlTokens and SqlKeywords.

Returns:
A Lexer implementation for the Sql grammar.

parsePlsql

public static PlsqlRoot parsePlsql(ReadTextBuffer textBuffer)
Parses the input as INPUT_PLS_SRC. Provided for convenience.

Returns:
The PlsqlRoot of the generated parse tree or null if none.

parseSql

public static PlsqlRoot parseSql(ReadTextBuffer textBuffer)
Parses the input as INPUT_SQL_QCPI. Provided for convenience.

Returns:
The PlsqlRoot of the generated parse tree or null if none.

parse

public static PlsqlRoot parse(ReadTextBuffer textBuffer,
                              PlsqlParser.ParsingOptions options)
Returns:
The PlsqlRoot of the generated parse tree or null if none.

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

E13403-04

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