public abstract class Expression extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Expression.PointerIterator
Pointer iterator
|
static class |
Expression.ValueIterator
Value Iterator
|
Modifier and Type | Field and Description |
---|---|
protected static Double |
NOT_A_NUMBER
NaN
|
protected static Double |
ONE
one
|
protected static Double |
ZERO
zero
|
Constructor and Description |
---|
Expression() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
compute(EvalContext context)
Evaluates the expression.
|
abstract boolean |
computeContextDependent()
Implemented by subclasses and result is cached by isContextDependent()
|
abstract Object |
computeValue(EvalContext context)
Evaluates the expression.
|
boolean |
isContextDependent()
Returns true if this expression should be re-evaluated
each time the current position in the context changes.
|
Iterator |
iterate(EvalContext context)
Iterate over the values from the specified context.
|
Iterator |
iteratePointers(EvalContext context)
Iterate over the pointers from the specified context.
|
protected static final Double NOT_A_NUMBER
public Expression()
public boolean isContextDependent()
public abstract boolean computeContextDependent()
public abstract Object computeValue(EvalContext context)
context
- evaluation contextpublic abstract Object compute(EvalContext context)
context
- evaluation contextpublic Iterator iterate(EvalContext context)
context
- evaluation contextpublic Iterator iteratePointers(EvalContext context)
context
- evaluation contextCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.