public interface BoolVariableExpr extends VariableExpression, BooleanExpression
BooleanExpression representing a variable, a Boolean whose actual Boolean value is not currently known.FALSE, TRUE| Modifier and Type | Method and Description |
|---|---|
default java.lang.Boolean |
evaluate()
Evaluates the expression.
|
default java.lang.Boolean |
evaluate(Substitution substitutions)
Evaluates the expression after substituting contained variables.
|
default LazyBoolEvaluationResult |
evaluateLazy(Substitution substitutions)
Evaluates the result of this expression (with the given substitutions) concurrently in the background.
|
default void |
forEachChild(java.util.function.Consumer<Expression> action)
Calls action on every (direct) child of this expression.
|
default BooleanExpression |
substitute(Substitution substitutions)
Substitutes variables using the given function.
|
and, evaluateLazy, not, or, substitute, substitute, valueOfaccumulate, containsExprMatchingPredicate, containsVariables, getVariables, treeWalkdefault java.lang.Boolean evaluate()
Expressionevaluate in interface BooleanExpressionevaluate in interface Expressiondefault java.lang.Boolean evaluate(Substitution substitutions)
Expressionevaluate in interface BooleanExpressionevaluate in interface Expressionsubstitutions - a function mapping variables to expressions that can be evaluateddefault void forEachChild(java.util.function.Consumer<Expression> action)
ExpressionGroupOpExpr, this would call action on the left- and right-hand-side and then return.forEachChild in interface Expressiondefault BooleanExpression substitute(Substitution substitutions)
Expressionsubstitute in interface BooleanExpressionsubstitute in interface Expressionsubstitutions - a function mapping variable expressions to their replacement expressionsdefault LazyBoolEvaluationResult evaluateLazy(Substitution substitutions)
BooleanExpressionevaluateLazy in interface BooleanExpression