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, TemplateEngine.TemplateExpression source)
Creates a deferred unified expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TemplateEngine.ExpressionType
getType()
Gets this TemplateExpression type.protected void
getVariables(Engine.VarCollector collector)
Fills up the list of variables accessed by this unified expression.boolean
isImmediate()
Checks whether this expression is immediate.protected TemplateEngine.TemplateExpression
prepare(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, TemplateEngine.TemplateExpression source)
Creates a deferred unified expression.- Parameters:
expr
- the unified expression as a stringnode
- the unified expression as an ASTsource
- the source unified expression if any
-
-
Method Detail
-
getType
TemplateEngine.ExpressionType getType()
Description copied from class:TemplateEngine.TemplateExpression
Gets this TemplateExpression type.- Specified by:
getType
in classTemplateEngine.TemplateExpression
- Returns:
- its type
-
getVariables
protected void getVariables(Engine.VarCollector collector)
Description copied from class:TemplateEngine.TemplateExpression
Fills up the list of variables accessed by this unified expression.- Overrides:
getVariables
in classTemplateEngine.JexlBasedExpression
- Parameters:
collector
- the variable collector
-
isImmediate
public boolean isImmediate()
Description copied from interface:JxltEngine.Expression
Checks whether this expression is immediate.- Specified by:
isImmediate
in interfaceJxltEngine.Expression
- Overrides:
isImmediate
in classTemplateEngine.TemplateExpression
- Returns:
- true if immediate, false otherwise
-
prepare
protected TemplateEngine.TemplateExpression prepare(Interpreter interpreter)
Description copied from class:TemplateEngine.TemplateExpression
Prepares a sub-expression for interpretation.- Overrides:
prepare
in classTemplateEngine.TemplateExpression
- Parameters:
interpreter
- a JEXL interpreter- Returns:
- a prepared unified expression
-
-