public interface Expression
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Creates a deep copy of the expression which can be modified without affecting the original expression.
|
Object |
eval(LocalRenderContext ctx)
Evaluates the expression into an object using the given context.
|
Class<?> |
getType()
Returns the Java class of the objects yielded by this expression.
|
boolean |
isConstant()
Determines if the expression is constant.
|
Expression |
propagateVisitor(ExpressionVisitor visitor)
Visits all child nodes and then the node itself.
|
Expression |
reduce()
Reduces and optimizes the expression if possible.
|
Object eval(LocalRenderContext ctx)
ctx
- the current rendering contextExpression propagateVisitor(ExpressionVisitor visitor)
visitor
- the visitor to invoke for all child nodes and on the node itselfExpression reduce()
boolean isConstant()
Expression copy()
Class<?> getType()
Copyright © 2018. All rights reserved.