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
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
ConstructorsConstructorDescriptionDeferredExpression
(CharSequence expr, JexlNode node, TemplateEngine.TemplateExpression source) Creates a deferred unified expression. -
Method Summary
Modifier and TypeMethodDescription(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
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 Details
-
DeferredExpression
DeferredExpression(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 Details
-
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
-
getType
TemplateEngine.ExpressionType getType()Description copied from class:TemplateEngine.TemplateExpression
Gets this TemplateExpression type.- Specified by:
getType
in classTemplateEngine.TemplateExpression
- Returns:
- its type
-
prepare
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
-
getVariables
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
-