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 BodyNodebodyprivate 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 voidaccept(NodeVisitor visitor)private java.lang.Stringrender(PebbleTemplateImpl self, EvaluationContextImpl context)voidrender(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:
acceptin interfaceNode- Specified by:
acceptin classAbstractRenderableNode
-
render
public void render(PebbleTemplateImpl self, java.io.Writer writer, EvaluationContextImpl context) throws java.io.IOException
- Specified by:
renderin interfaceRenderableNode- Specified by:
renderin classAbstractRenderableNode- Throws:
java.io.IOException
-
render
private java.lang.String render(PebbleTemplateImpl self, EvaluationContextImpl context) throws java.io.IOException
- Throws:
java.io.IOException
-
-