public class LogicalNaryCondition
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetadataVisitor visitor,
int depth) |
static IntegerCondition |
count(java.util.List<StepCondition> steps)
Returns an integer condition that returns the number of the given conditions that evaluate to true.
|
Metadata |
getMetadata()
Returns the metadata to describe this node.
|
static LogicalNaryCondition |
matchAll(java.util.List<StepCondition> steps)
Returns a nary condition that returns true if all the given steps evaluate to true.
|
static LogicalNaryCondition |
matchAny(java.util.List<StepCondition> steps)
Returns a nary condition that returns true if any of the given steps evaluate to true.
|
static LogicalNaryCondition |
matchNone(java.util.List<StepCondition> steps)
Returns a nary condition that returns true if none the given steps 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 IntegerCondition count(java.util.List<StepCondition> steps)
This operation depends on Context.isShortCircuit(). It won't change the predicate value, but might
impact performance and tree evaluation.
steps - the conditions to countpublic static LogicalNaryCondition matchAny(java.util.List<StepCondition> steps)
This operation depends on Context.isShortCircuit(). It won't change the predicate value, but might
impact performance and tree evaluation.
steps - the conditions to matchpublic static LogicalNaryCondition matchAll(java.util.List<StepCondition> steps)
This operation depends on Context.isShortCircuit(). It won't change the predicate value, but might
impact performance and tree evaluation.
steps - the conditions to matchpublic static LogicalNaryCondition matchNone(java.util.List<StepCondition> steps)
This operation depends on Context.isShortCircuit(). It won't change the predicate value, but might
impact performance and tree evaluation.
steps - the conditions to matchpublic 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