public class BoolAndExpr extends java.lang.Object implements BooleanExpression
BooleanExpression representing the Boolean AND of two BooleanExpression instances.| Modifier and Type | Field and Description |
|---|---|
protected BooleanExpression |
lhs
The Boolean expression on the left hand side of this Boolean AND.
|
protected BooleanExpression |
rhs
The Boolean expression on the right hand side of this Boolean AND.
|
FALSE, TRUE| Constructor and Description |
|---|
BoolAndExpr(BooleanExpression lhs,
BooleanExpression rhs) |
| 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 |
getLhs()
Retrieves the Boolean expression on the left hand side of this Boolean AND.
|
BooleanExpression |
getRhs()
Retrieves the Boolean expression on the right hand side of this Boolean AND.
|
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 BooleanExpression lhs
protected final BooleanExpression rhs
public BoolAndExpr(BooleanExpression lhs, BooleanExpression rhs)
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 Expressionpublic BooleanExpression getLhs()
public BooleanExpression getRhs()