Package io.pebbletemplates.pebble.node
Class CacheNode
- java.lang.Object
-
- io.pebbletemplates.pebble.node.AbstractRenderableNode
-
- io.pebbletemplates.pebble.node.CacheNode
-
- All Implemented Interfaces:
Node
,RenderableNode
public class CacheNode extends AbstractRenderableNode
Node for the cache tag
-
-
Field Summary
Fields Modifier and Type Field Description private BodyNode
body
private Expression<?>
name
-
Constructor Summary
Constructors Constructor Description CacheNode(int lineNumber, Expression<?> name, BodyNode body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(NodeVisitor visitor)
private java.lang.String
render(PebbleTemplateImpl self, EvaluationContextImpl context)
void
render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context)
-
Methods inherited from class io.pebbletemplates.pebble.node.AbstractRenderableNode
getLineNumber, setLineNumber
-
-
-
-
Field Detail
-
body
private final BodyNode body
-
name
private final Expression<?> name
-
-
Constructor Detail
-
CacheNode
public CacheNode(int lineNumber, Expression<?> name, BodyNode body)
-
-
Method Detail
-
accept
public void accept(NodeVisitor visitor)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classAbstractRenderableNode
-
render
public void render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context) throws java.io.IOException
- Specified by:
render
in interfaceRenderableNode
- Specified by:
render
in classAbstractRenderableNode
- Throws:
java.io.IOException
-
render
private java.lang.String render(PebbleTemplateImpl self, EvaluationContextImpl context) throws java.io.IOException
- Throws:
java.io.IOException
-
-