freemarker.core
Class TextBlock
java.lang.Object
freemarker.core.TemplateObject
freemarker.core.TemplateElement
freemarker.core.TextBlock
- All Implemented Interfaces:
- javax.swing.tree.TreeNode
public final class TextBlock
- extends TemplateElement
A TemplateElement representing a block of plain text.
- Version:
- $Id: TextBlock.java,v 1.17 2004/01/06 17:06:42 szegedia Exp $
Constructor Summary |
TextBlock(java.lang.String text)
|
TextBlock(java.lang.String text,
boolean unparsed)
|
Methods inherited from class freemarker.core.TemplateElement |
children, getAllowsChildren, getChildAt, getChildCount, getChildNodes, getIndex, getNodeName, getNodeNamespace, getNodeType, getParent, getParentNode, isLeaf, setChildAt |
Methods inherited from class freemarker.core.TemplateObject |
contains, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getEndLocation, getEndLocationQuoted, getSource, getStartLocation, getStartLocationQuoted, getTemplate, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TextBlock
public TextBlock(java.lang.String text)
TextBlock
public TextBlock(java.lang.String text,
boolean unparsed)
accept
public void accept(Environment env)
throws java.io.IOException
- Simply outputs the text.
- Parameters:
env
- The runtime environment
- Throws:
java.io.IOException
getCanonicalForm
public java.lang.String getCanonicalForm()
- Specified by:
getCanonicalForm
in class TemplateObject
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in class TemplateElement