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.- Author:
- mbosecke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(PebbleTemplateImpl self, EvaluationContextImpl context) intReturns the line number on which the expression is defined on.Methods inherited from class io.pebbletemplates.pebble.node.expression.UnaryExpression
accept, getChildExpression, setChildExpression, setLineNumber
-
Constructor Details
-
RenderableNodeExpression
-
-
Method Details
-
evaluate
-
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.
-