|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.parser.plsql.old.PlsqlTreeGenerator
public class PlsqlTreeGenerator
The TreeGenerator is the glue between the SyntaxRecognizer and the SymbolFactory. When a syntax token indicates a new element, we create a new parse tree node. When a syntax token indicates the close of an element, we finish off the corresponding parse tree node. For details and specifics of the underlying parse data structure, see the JavaSymbolFactory.
The idea is to generate the entire tree by maintaining a single stack. Start by pushing a root node onto the stack and generate the rest of the tree in an in-order depth-first fashion.
JavaSyntaxRecognizer
, JavaSymbolFactory
, PlsqlSymbol
Field Summary |
---|
Constructor Summary | |
---|---|
PlsqlTreeGenerator() |
Method Summary | |
---|---|
CommonRoot |
generate() Entry-point into the generate mechanism. |
PlsqlSyntaxRecognizer |
getRecognizer() |
void |
initialize(PlsqlSyntaxRecognizer t) |
void |
receive(SyntaxToken token, int syntaxCode) Receive one token from the syntax stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlsqlTreeGenerator()
Method Detail |
---|
public void initialize(PlsqlSyntaxRecognizer t)
public PlsqlSyntaxRecognizer getRecognizer()
public CommonRoot generate()
public void receive(SyntaxToken token, int syntaxCode)
receive
in interface SyntaxListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |