public interface Expression
Modifier and Type | Method and Description |
---|---|
void |
collectIdentifiers(Collection<Identifier> identifiers)
Adds any Identifiers from this expression to the given collection.
|
Object |
eval(EvalContext ctx)
Evaluates the expression and returns the result.
|
boolean |
isConstant() |
String |
toDebugString() |
String |
toRawString() |
Object eval(EvalContext ctx)
ctx
- the context within which to evaluate the expressionString toDebugString()
String toRawString()
Object.toString()
result may return a value which has been cleaned
up with respect to the original expression.boolean isConstant()
true
if this is a constant expression. A constant
expression will always return the same result when invoked and
has no side effect.void collectIdentifiers(Collection<Identifier> identifiers)
Copyright © 2005–2018. All rights reserved.