public static class Expression.BoolConstant extends Expression.Base implements Expression, Valuator
TRUE and FALSE.Expression.Application, Expression.Base, Expression.BoolConstant, Expression.Constant, Expression.Fixed, Expression.Util, Expression.Valof, Expression.VariableFALSE, TRUE| Constructor and Description |
|---|
Expression.BoolConstant(boolean value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evalBool(IndexValues vv)
Answer the evaluated value as a primitive boolean
|
boolean |
evalBool(VariableValues vv) |
Object |
evalObject(IndexValues iv)
Answer the evaluated value
|
Object |
getValue()
If this Expression is a literal, answer the value of that literal.
|
boolean |
isConstant()
Answer true iff this Expression represents a literal [Java object] value.
|
Valuator |
prepare(VariableIndexes vi)
Answer a Valuator which, when run with a set of index-to-value bindings,
evaluates this expression in the light of the given variable-to-index bindings
[ie as though the variables were bound to the corresponding values]
|
argCount, equals, getArg, getFun, getName, isApply, isVariablegetClass, hashCode, notify, notifyAll, toString, wait, wait, waitargCount, getArg, getFun, getName, isApply, isVariablepublic boolean isConstant()
ExpressionisConstant in interface ExpressionisConstant in class Expression.Basepublic Object getValue()
ExpressiongetValue in interface ExpressiongetValue in class Expression.Basepublic Valuator prepare(VariableIndexes vi)
Expressionprepare in interface Expressionpublic boolean evalBool(VariableValues vv)
public boolean evalBool(IndexValues vv)
Valuatorpublic Object evalObject(IndexValues iv)
ValuatorevalObject in interface Valuatoriv - the mapping from variable (indexes) to valuesLicenced under the Apache License, Version 2.0