public interface StepCondition extends SyntaxTree
A condition is represented by a predicate predicate() and a getMetadata() describing the node.
| Modifier and Type | Method and Description |
|---|---|
default StepCondition |
and(StepCondition condition)
Returns a condition checking if the node predicate and the given condition predicate evaluate to true.
|
Metadata |
getMetadata()
Returns the metadata to describe this node.
|
default StepCondition |
not()
Returns a condition checking if the node predicate does not evaluate to true.
|
default StepCondition |
or(StepCondition condition)
Returns a condition checking if the node predicate or the given condition predicate evaluate to true.
|
java.util.function.BiPredicate<DslModel,Context> |
predicate()
Returns the predicate for this node value.
|
java.util.function.BiPredicate<DslModel,Context> predicate()
Metadata getMetadata()
default StepCondition and(StepCondition condition)
condition - the right side conditiondefault StepCondition or(StepCondition condition)
condition - the right side conditiondefault StepCondition not()