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, setChildAtcontains, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getEndLocation, getEndLocationQuoted, getSource, getStartLocation, getStartLocationQuoted, getTemplate, toStringpublic TextBlock(String text)
public TextBlock(String text, boolean unparsed)
public void accept(Environment env) throws IOException
env - The runtime environmentIOExceptionprotected String dump(boolean canonical)
TemplateElementTemplateElement.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 TemplateElementcanonical - if true, it calculates the return value of TemplateElement.getCanonicalForm(),
otherwise of TemplateElement.getDescription().Copyright © 2016. All Rights Reserved.