|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConditionExpression<T,O>
A root of an expression tree structure.
The following permutation are generally available, but specific constraints on the type of the expression may apply:leaf()
method will not return null.left()
expression with no operator.left()
and an op()
.left()
and right()
and an operator acting between themConditionExpressionVisitor
.
Method Summary | |
---|---|
boolean |
isLeafExpression()
Returns true if this is a leaf expression, false if this is a binary expression. |
T |
leaf()
Returns the leaf if this is a leaf expression, or null if this is a binary expression. |
java.util.Collection<T> |
leaves()
Returns a collection of all the leaves under this condition expression. |
ConditionExpression<T,O> |
left()
Returns the left (first) part of a binary expression, or null if this is a leaf expression. |
O |
op()
Returns the operand of the expression, or null if this is a leaf expression. |
ConditionExpression<T,O> |
right()
Returns the right (second) part of a binary expression, or null if this is a leaf expression. |
void |
visit(ConditionExpressionVisitor<T,O> visitor)
Visits the expression using an (optionally client-based) visitor. |
Method Detail |
---|
ConditionExpression<T,O> left()
ConditionExpression<T,O> right()
O op()
boolean isLeafExpression()
T leaf()
java.util.Collection<T> leaves()
void visit(ConditionExpressionVisitor<T,O> visitor)
visitor
- a client implementation of the ConditionExpressionVisitor interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |