Package io.pebbletemplates.pebble.node
Class TextNode
java.lang.Object
io.pebbletemplates.pebble.node.AbstractRenderableNode
io.pebbletemplates.pebble.node.TextNode
- All Implemented Interfaces:
Node
,RenderableNode
Represents static text in a template.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final char[]
Most Writers will convert strings to char[] so we might as well store it as a char[] to begin with; small performance optimization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NodeVisitor visitor) char[]
getData()
void
render
(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) Methods inherited from class io.pebbletemplates.pebble.node.AbstractRenderableNode
getLineNumber, setLineNumber
-
Field Details
-
data
private final char[] dataMost Writers will convert strings to char[] so we might as well store it as a char[] to begin with; small performance optimization.
-
-
Constructor Details
-
TextNode
-
-
Method Details
-
render
public void render(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) throws IOException - Specified by:
render
in interfaceRenderableNode
- Specified by:
render
in classAbstractRenderableNode
- Throws:
IOException
-
accept
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classAbstractRenderableNode
-
getData
public char[] getData()
-