public class BoolConstantExpr extends java.lang.Object implements BooleanExpression
BooleanExpression representing a constant Boolean value.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
value
The constant Boolean value stored in this
BoolConstantExpr. |
FALSE, TRUE| Constructor and Description |
|---|
BoolConstantExpr(boolean value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
evaluate(Substitution substitutions)
Evaluates the expression after substituting contained variables.
|
LazyBoolEvaluationResult |
evaluateLazy(Substitution substitutions)
Evaluates the result of this expression (with the given substitutions) concurrently in the background.
|
void |
forEachChild(java.util.function.Consumer<Expression> action)
Calls action on every (direct) child of this expression.
|
BooleanExpression |
substitute(Substitution substitutions)
Substitutes variables using the given function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, evaluate, evaluateLazy, not, or, substitute, substitute, valueOfaccumulate, containsExprMatchingPredicate, containsVariables, getVariables, treeWalkprotected final boolean value
BoolConstantExpr.public BooleanExpression substitute(Substitution substitutions)
Expressionsubstitute in interface BooleanExpressionsubstitute in interface Expressionsubstitutions - a function mapping variable expressions to their replacement expressionspublic java.lang.Boolean evaluate(Substitution substitutions)
Expressionevaluate in interface BooleanExpressionevaluate in interface Expressionsubstitutions - a function mapping variables to expressions that can be evaluatedpublic LazyBoolEvaluationResult evaluateLazy(Substitution substitutions)
BooleanExpressionevaluateLazy in interface BooleanExpressionpublic 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 Expression