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 aRenderableNodeinto 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 intlineNumberprivate RenderableNodenode
-
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.Objectevaluate(PebbleTemplateImpl self, EvaluationContextImpl context)intgetLineNumber()Returns the line number on which the expression is defined on.RenderableNodegetNode()-
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)
-
getNode
public RenderableNode getNode()
-
getLineNumber
public int getLineNumber()
Description copied from interface:ExpressionReturns the line number on which the expression is defined on.- Specified by:
getLineNumberin interfaceExpression<java.lang.Object>- Overrides:
getLineNumberin classUnaryExpression- Returns:
- the line number on which the expression is defined on.
-
-