freemarker.core
Class TextBlock

java.lang.Object
  extended by freemarker.core.TemplateObject
      extended by freemarker.core.TemplateElement
          extended by 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)
           
 
Method Summary
 void accept(Environment env)
          Simply outputs the text.
 java.lang.String getCanonicalForm()
           
 java.lang.String getDescription()
           
 
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
 

Constructor Detail

TextBlock

public TextBlock(java.lang.String text)

TextBlock

public TextBlock(java.lang.String text,
                 boolean unparsed)
Method Detail

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