|
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 |
public interface ExpressionObject
This is the ExpressionObject interface used by the ExpressionStack. See the ExpressionStack for details. During processing, the expression tree is built via the methods addOperand(...) and closeOperator(...) which are called on operator expressions. Only classify() should be called on the atom expressions.
Field Summary | |
---|---|
static int |
ATOM This ExpressionObject is not an operator. |
static int |
INFIX_OP This ExpressionObject is an infix operator. |
static int |
LEFT_ASSOC This operator is left associativity. |
static int |
MAX_PRECEDENCE No ExpressionObject should return a precedence worse than this value. |
static int |
NON_ASSOC This operator is non-associative. |
static int |
POSTFIX_OP This ExpressionObject is a postfix operator. |
static int |
PREFIX_OP This ExpressionObject is a prefix operator. |
static int |
RIGHT_ASSOC This operator is right associative. |
static int |
TERNARY_OP This ExpressionObject is a ternary operator. |
Method Summary | |
---|---|
void |
addOperand(ExpressionObject e) Adds an operand to this operator object. |
int |
classify() Returns the whether an ExpressionObject is an atom, a prefix operator, an infix operator, or a postfix operator. |
void |
closeOperator(java.lang.Object closingArgument) Called after all operands have been added to allow post-processing. |
int |
getAssociativity() Returns the associativity of this operator according to the above constants. |
int |
getPrecedence() Returns a positive number representing the precedence of this ExpressionObject operator. |
Field Detail |
---|
static final int ATOM
static final int PREFIX_OP
static final int INFIX_OP
static final int POSTFIX_OP
static final int TERNARY_OP
static final int MAX_PRECEDENCE
static final int LEFT_ASSOC
static final int NON_ASSOC
static final int RIGHT_ASSOC
Method Detail |
---|
int classify()
int getPrecedence()
int getAssociativity()
void addOperand(ExpressionObject e)
void closeOperator(java.lang.Object closingArgument)
closingArgument
- The closing argument passed to the ExpressionStack.
|
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 |