public class LogicalBinaryCondition
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetadataVisitor visitor,
int depth) |
static LogicalBinaryCondition |
and(StepCondition left,
StepCondition right)
Returns a binary condition that returns true if the given left and right conditions evaluate to true.
|
Metadata |
getMetadata()
Returns the metadata to describe this node.
|
static LogicalBinaryCondition |
or(StepCondition left,
StepCondition right)
Returns a binary condition that returns true if the given left or right conditions evaluate to true.
|
java.util.function.BiPredicate<DslModel,Context> |
predicate()
Returns the predicate for this node value.
|
java.lang.String |
readable(java.util.Locale locale)
Returns the human readable version of this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, not, ormarkdown, markdown, readablepublic static LogicalBinaryCondition and(StepCondition left, StepCondition right)
This operation depends on Context.isShortCircuit(). It won't change the predicate value, but might
impact performance and tree evaluation.
left - the left conditionright - the right conditionpublic static LogicalBinaryCondition or(StepCondition left, StepCondition right)
This operation depends on Context.isShortCircuit(). It won't change the predicate value, but might
impact performance and tree evaluation.
left - the left conditionright - the right conditionpublic Metadata getMetadata()
StepConditiongetMetadata in interface StepConditionpublic java.util.function.BiPredicate<DslModel,Context> predicate()
StepConditionpredicate in interface StepConditionpublic java.lang.String readable(java.util.Locale locale)
SyntaxTreereadable in interface SyntaxTreelocale - the locale to useSyntaxTree.readable()public void accept(MetadataVisitor visitor, int depth)
accept in interface SyntaxTree