public class Constant extends Expression
Expression.PointerIterator, Expression.ValueIterator
NOT_A_NUMBER, ONE, ZERO
Constructor and Description |
---|
Constant(Number number)
Create a new Constant.
|
Constant(String string)
Create a new Constant.
|
Modifier and Type | Method and Description |
---|---|
Object |
compute(EvalContext context)
Evaluates the expression.
|
boolean |
computeContextDependent()
Returns false
|
Object |
computeValue(EvalContext context)
Evaluates the expression.
|
boolean |
isContextDependent()
Returns false
|
String |
toString() |
iterate, iteratePointers
public Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation contextpublic Object computeValue(EvalContext context)
Expression
computeValue
in class Expression
context
- evaluation contextpublic boolean isContextDependent()
isContextDependent
in class Expression
public boolean computeContextDependent()
computeContextDependent
in class Expression
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.