freemarker.core

Class TextBlock

Implemented Interfaces:
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(String text)
TextBlock(String text, boolean unparsed)

Method Summary

void
accept(Environment env)
Simply outputs the text.
String
getCanonicalForm()
String
getDescription()

Methods inherited from class freemarker.core.TemplateElement

children, getAllowsChildren, getChildAt, getChildCount, getChildNodes, getDescription, getIndex, getNodeName, getNodeNamespace, getNodeType, getParent, getParentNode, isLeaf, setChildAt

Methods inherited from class freemarker.core.TemplateObject

contains, getBeginColumn, getBeginLine, getCanonicalForm, getEndColumn, getEndLine, getEndLocation, getSource, getStartLocation, getTemplate, toString

Constructor Details

TextBlock

public TextBlock(String text)

TextBlock

public TextBlock(String text,
                 boolean unparsed)

Method Details

accept

public void accept(Environment env)
            throws IOException
Simply outputs the text.

getCanonicalForm

public String getCanonicalForm()
Overrides:
getCanonicalForm in interface TemplateObject

getDescription

public String getDescription()
Overrides:
getDescription in interface TemplateElement