Class TemplateEngine.DeferredExpression
- java.lang.Object
-
- org.apache.commons.jexl3.internal.TemplateEngine.TemplateExpression
-
- org.apache.commons.jexl3.internal.TemplateEngine.JexlBasedExpression
-
- org.apache.commons.jexl3.internal.TemplateEngine.DeferredExpression
-
- All Implemented Interfaces:
JxltEngine.Expression
- Enclosing class:
- TemplateEngine
final class TemplateEngine.DeferredExpression extends TemplateEngine.JexlBasedExpression
A deferred unified expression: #{jexl}.
-
-
Field Summary
-
Fields inherited from class org.apache.commons.jexl3.internal.TemplateEngine.JexlBasedExpression
expr, node
-
Fields inherited from class org.apache.commons.jexl3.internal.TemplateEngine.TemplateExpression
source
-
-
Constructor Summary
Constructors Constructor Description DeferredExpression(java.lang.CharSequence expr, JexlNode node)Creates a deferred unified expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TemplateEngine.ExpressionTypegetType()Gets this TemplateExpression type.protected voidgetVariables(Engine.VarCollector collector)Fills up the list of variables accessed by this unified expression.booleanisImmediate()Checks whether this expression is immediate.protected TemplateEngine.TemplateExpressionprepare(Interpreter interpreter)Prepares a sub-expression for interpretation.-
Methods inherited from class org.apache.commons.jexl3.internal.TemplateEngine.JexlBasedExpression
asString, evaluate, getInfo, getVariables, options
-
Methods inherited from class org.apache.commons.jexl3.internal.TemplateEngine.TemplateExpression
asString, evaluate, evaluate, getSource, isDeferred, prepare, prepare, toString
-
-
-
-
Constructor Detail
-
DeferredExpression
DeferredExpression(java.lang.CharSequence expr, JexlNode node)Creates a deferred unified expression.- Parameters:
expr- the unified expression as a stringnode- the unified expression as an AST
-
-
Method Detail
-
getType
TemplateEngine.ExpressionType getType()
Description copied from class:TemplateEngine.TemplateExpressionGets this TemplateExpression type.- Specified by:
getTypein classTemplateEngine.TemplateExpression- Returns:
- its type
-
getVariables
protected void getVariables(Engine.VarCollector collector)
Description copied from class:TemplateEngine.TemplateExpressionFills up the list of variables accessed by this unified expression.- Overrides:
getVariablesin classTemplateEngine.JexlBasedExpression- Parameters:
collector- the variable collector
-
isImmediate
public boolean isImmediate()
Description copied from interface:JxltEngine.ExpressionChecks whether this expression is immediate.- Specified by:
isImmediatein interfaceJxltEngine.Expression- Overrides:
isImmediatein classTemplateEngine.TemplateExpression- Returns:
- true if immediate, false otherwise
-
prepare
protected TemplateEngine.TemplateExpression prepare(Interpreter interpreter)
Description copied from class:TemplateEngine.TemplateExpressionPrepares a sub-expression for interpretation.- Overrides:
preparein classTemplateEngine.TemplateExpression- Parameters:
interpreter- a JEXL interpreter- Returns:
- a prepared unified expression
-
-