public static class Expression.Fixed extends Expression.Constant
Expression.Application, Expression.Base, Expression.BoolConstant, Expression.Constant, Expression.Fixed, Expression.Util, Expression.Valof, Expression.Variable
FALSE, TRUE
Constructor and Description |
---|
Expression.Fixed(Object value) |
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
If this Expression is a literal, answer the value of that literal.
|
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]
|
String |
toString() |
isConstant
argCount, equals, getArg, getFun, getName, isApply, isVariable
public Expression.Fixed(Object value)
public Object getValue()
Expression
getValue
in interface Expression
getValue
in class Expression.Constant
public Valuator prepare(VariableIndexes vi)
Expression
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP