Class RenderableNodeExpression
- java.lang.Object
-
- io.pebbletemplates.pebble.node.expression.UnaryExpression
-
- io.pebbletemplates.pebble.node.expression.RenderableNodeExpression
-
- All Implemented Interfaces:
Expression<java.lang.Object>
,Node
public class RenderableNodeExpression extends UnaryExpression
This class wraps aRenderableNode
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 Modifier and Type Field Description private int
lineNumber
private RenderableNode
node
-
Constructor Summary
Constructors Constructor Description RenderableNodeExpression(RenderableNode node, int lineNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
int
getLineNumber()
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 Detail
-
node
private final RenderableNode node
-
lineNumber
private final int lineNumber
-
-
Constructor Detail
-
RenderableNodeExpression
public RenderableNodeExpression(RenderableNode node, int lineNumber)
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
-
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<java.lang.Object>
- Overrides:
getLineNumber
in classUnaryExpression
- Returns:
- the line number on which the expression is defined on.
-
-