|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.parser.util.ArrayListHeap oracle.javatools.parser.util.ExpressionStack
public class ExpressionStack
The ExpressionStack is used for generating an expression tree out of a stream of expressions in infix notation. Expressions should implement the ExpressionObject interface. To use, instantiate an ExpressionStack object and provide your stream of expressions to this ExpressionStack via the add(...) method. When done, call process() to process through the expressions and generate the expression tree. The tree is built via ExpressionObject's addOperand(...) and closeOperator(...) methods.
Constructor Summary | |
---|---|
ExpressionStack()
|
Method Summary | |
---|---|
void |
add(ExpressionObject e)
Adds an ExpressionObject as in an infix stream. |
ExpressionObject |
process()
Takes the stream of ExpressionObjects in infix order via the method add(...) and generates a tree of ExpressionObjects. |
void |
setClosingArgument(java.lang.Object arg)
|
Methods inherited from class oracle.javatools.parser.util.ArrayListHeap |
---|
allocArrayList, freeArrayList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionStack()
Method Detail |
---|
public void add(ExpressionObject e)
public void setClosingArgument(java.lang.Object arg)
public ExpressionObject process()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |