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) intReturns the line number on which the expression is defined on.getNode()Methods inherited from class UnaryExpression
accept, getChildExpression, setChildExpression, setLineNumber
-
Field Details
-
node
-
lineNumber
private final int lineNumber
-
-
Constructor Details
-
RenderableNodeExpression
-
-
Method Details
-
evaluate
-
getNode
-
getLineNumber
public int getLineNumber()Description copied from interface:ExpressionReturns the line number on which the expression is defined on.- Specified by:
getLineNumberin interfaceExpression<Object>- Overrides:
getLineNumberin classUnaryExpression- Returns:
- the line number on which the expression is defined on.
-