public interface BooleanExpression extends Expression
Expression that evaluates to a Boolean.| Modifier and Type | Field and Description |
|---|---|
static BoolConstantExpr |
FALSE |
static BoolConstantExpr |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
default BooleanExpression |
and(BooleanExpression rhs)
Applies a Boolean AND to this and the given Boolean expression.
|
default java.lang.Boolean |
evaluate()
Evaluates the expression.
|
java.lang.Boolean |
evaluate(Substitution substitutions)
Evaluates the expression after substituting contained variables.
|
default LazyBoolEvaluationResult |
evaluateLazy()
Evaluates the result of this expression concurrently in the background.
|
LazyBoolEvaluationResult |
evaluateLazy(Substitution substitutions)
Evaluates the result of this expression (with the given substitutions) concurrently in the background.
|
default BooleanExpression |
not()
Applies a Boolean NOT to this Boolean expression.
|
default BooleanExpression |
or(BooleanExpression rhs)
Applies a Boolean OR to this and the given Boolean expression.
|
default BooleanExpression |
substitute(java.lang.String variable,
Expression substitution) |
BooleanExpression |
substitute(Substitution substitutions)
Substitutes variables using the given function.
|
default BooleanExpression |
substitute(VariableExpression variable,
Expression substitution)
Substitutes a specific variable with the given expression.
|
static BooleanExpression |
valueOf(boolean bool) |
accumulate, containsExprMatchingPredicate, containsVariables, forEachChild, getVariables, treeWalkstatic final BoolConstantExpr TRUE
static final BoolConstantExpr FALSE
BooleanExpression substitute(Substitution substitutions)
Expressionsubstitute in interface Expressionsubstitutions - a function mapping variable expressions to their replacement expressionsdefault BooleanExpression substitute(java.lang.String variable, Expression substitution)
substitute in interface Expressiondefault BooleanExpression substitute(VariableExpression variable, Expression substitution)
Expressionsubstitute in interface Expressionvariable - the variable to replacesubstitution - the expression to substitutedefault java.lang.Boolean evaluate()
Expressionevaluate in interface Expressionjava.lang.Boolean evaluate(Substitution substitutions)
Expressionevaluate in interface Expressionsubstitutions - a function mapping variables to expressions that can be evaluatedLazyBoolEvaluationResult evaluateLazy(Substitution substitutions)
default LazyBoolEvaluationResult evaluateLazy()
default BooleanExpression and(BooleanExpression rhs)
default BooleanExpression or(BooleanExpression rhs)
default BooleanExpression not()
static BooleanExpression valueOf(boolean bool)