Class RenderableNodeExpression
java.lang.Object
io.pebbletemplates.pebble.node.expression.UnaryExpression
io.pebbletemplates.pebble.node.expression.RenderableNodeExpression
- All Implemented Interfaces:
Expression<Object>
,Node
This class wraps a
RenderableNode
into an expression. This is used by the filter TAG to
apply a filter to large chunk of template which is contained within a renderable node.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(PebbleTemplateImpl self, EvaluationContextImpl context) int
Returns the line number on which the expression is defined on.Methods inherited from class io.pebbletemplates.pebble.node.expression.UnaryExpression
accept, getChildExpression, setChildExpression, setLineNumber
-
Field Details
-
node
-
lineNumber
private final int lineNumber
-
-
Constructor Details
-
RenderableNodeExpression
-
-
Method Details
-
evaluate
-
getLineNumber
public int getLineNumber()Description copied from interface:Expression
Returns the line number on which the expression is defined on.- Specified by:
getLineNumber
in interfaceExpression<Object>
- Overrides:
getLineNumber
in classUnaryExpression
- Returns:
- the line number on which the expression is defined on.
-