public interface ConditionExpression<T,O>
leaf()
method will not return null.left()
expression with no operator.left()
and an op()
.left()
and right()
and an operator acting between themConditionExpressionVisitor
.Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
ConditionExpression<T,O> left()
ConditionExpression<T,O> right()
O op()
boolean isLeafExpression()
T leaf()
Collection<T> leaves()
void visit(ConditionExpressionVisitor<T,O> visitor)
visitor
- a client implementation of the ConditionExpressionVisitor interface. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.