public final class TextBlock extends TemplateElement
Constructor and Description |
---|
TextBlock(String text) |
TextBlock(String text,
boolean unparsed) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Environment env)
Simply outputs the text.
|
protected String |
dump(boolean canonical)
Brings the implementation of
TemplateElement.getCanonicalForm() and TemplateElement.getDescription() to a single place. |
children, getAllowsChildren, getCanonicalForm, getChildAt, getChildCount, getChildNodes, getDescription, getIndex, getNodeName, getNodeNamespace, getNodeType, getParent, getParentNode, isLeaf, setChildAt
contains, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getEndLocation, getEndLocationQuoted, getSource, getStartLocation, getStartLocationQuoted, getTemplate, toString
public TextBlock(String text)
public TextBlock(String text, boolean unparsed)
public void accept(Environment env) throws IOException
env
- The runtime environmentIOException
protected String dump(boolean canonical)
TemplateElement
TemplateElement.getCanonicalForm()
and TemplateElement.getDescription()
to a single place.
Don't call those methods in method on this
, because that will result in infinite recursion!dump
in class TemplateElement
canonical
- if true
, it calculates the return value of TemplateElement.getCanonicalForm()
,
otherwise of TemplateElement.getDescription()
.Copyright © 2016. All Rights Reserved.