public class BoolEmptyExpr extends java.lang.Object implements BooleanExpression
BooleanExpression representing an empty expression useful for instantiating a new Boolean expression.
This class is useful when first creating a new Boolean expression, i.e. as en empty scaffolding. It will "disappear" once combined (via AND or OR) with other Boolean expressions.
Cannot be evaluated.
FALSE, TRUE| Constructor and Description |
|---|
BoolEmptyExpr() |
| Modifier and Type | Method and Description |
|---|---|
BooleanExpression |
and(BooleanExpression rhs)
Applies a Boolean AND to this and the given Boolean expression.
|
java.lang.Boolean |
evaluate()
Evaluates the expression.
|
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 |
not()
Applies a Boolean NOT to this Boolean expression.
|
BooleanExpression |
or(BooleanExpression rhs)
Applies a Boolean OR to this and the given Boolean expression.
|
BooleanExpression |
substitute(Substitution substitutions)
Substitutes variables using the given function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateLazy, substitute, substitute, valueOfaccumulate, containsExprMatchingPredicate, containsVariables, getVariables, treeWalkpublic BooleanExpression substitute(Substitution substitutions)
Expressionsubstitute in interface BooleanExpressionsubstitute in interface Expressionsubstitutions - a function mapping variable expressions to their replacement expressionspublic java.lang.Boolean evaluate()
Expressionevaluate in interface BooleanExpressionevaluate in interface Expressionpublic 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 Expressionpublic BooleanExpression or(BooleanExpression rhs)
BooleanExpressionor in interface BooleanExpressionpublic BooleanExpression and(BooleanExpression rhs)
BooleanExpressionand in interface BooleanExpressionpublic BooleanExpression not()
BooleanExpressionnot in interface BooleanExpression