Interface ExpNode
-
- All Known Implementing Classes:
ACosExpNode
,AddExpNode
,AdditiveExpNode
,AndExpNode
,BetweenExpNode
,BigDecimalBindMarkerNode
,BinaryExpNode
,BindMarkerNode
,CoalesceExpNode
,ColumnExpNode
,ComparativeExpNode
,CosExpNode
,DivExpNode
,DoubleBindMarkerNode
,DoubleExpNode
,EqExpNode
,EqualityExpNode
,EscapeExpNode
,ExistsExpNode
,GreaterEqExpNode
,GreaterExpNode
,InListExpNode
,InstantBindMarkerNode
,IntegerBindMarkerNode
,IsNotNullExpNode
,IsNullExpNode
,LeftParenExpNode
,LessEqExpNode
,LessExpNode
,LikeExpNode
,LiteralExpNode
,LongBindMarkerNode
,LongExpNode
,MultExpNode
,MultiplicativeExpNode
,NeqExpNode
,NotExistsExpNode
,NotExpNode
,OperatorNode
,OrExpNode
,ParenExpNode
,RadiansExpNode
,RightParenExpNode
,SelectExpNode
,SinExpNode
,StringBindMarkerNode
,StringExpNode
,SubExpNode
,UnaryExpNode
public interface ExpNode
A node in the expression tree for building SQL predicate statements
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isLeftParen()
Is this expression node a left-parendefault boolean
isOperand()
Is this expression node an operanddefault boolean
isOperator()
Is this expression node an operatordefault boolean
isRightParen()
Is this expression node a right-parenvoid
popOperands(java.util.Stack<ExpNode> stack)
Read the operands from the stackint
precedence()
Precedence of this expression node.<T> T
visit(ExpNodeVisitor<T> visitor)
Generic evaluation visitor
-
-
-
Method Detail
-
visit
<T> T visit(ExpNodeVisitor<T> visitor)
Generic evaluation visitor- Type Parameters:
T
-- Parameters:
visitor
-- Returns:
-
precedence
int precedence()
Precedence of this expression node. Used to parse the expression into the correct tree. We use 0 to represent the highest precedence- Returns:
-
isOperator
default boolean isOperator()
Is this expression node an operator- Returns:
-
isOperand
default boolean isOperand()
Is this expression node an operand- Returns:
-
isLeftParen
default boolean isLeftParen()
Is this expression node a left-paren- Returns:
-
isRightParen
default boolean isRightParen()
Is this expression node a right-paren- Returns:
-
popOperands
void popOperands(java.util.Stack<ExpNode> stack)
Read the operands from the stack- Parameters:
stack
-
-
-