freemarker.core

Class TemplateElement

Implemented Interfaces:
TreeNode
Known Direct Subclasses:
Comment, DebugBreak, LibraryLoad, Macro, ReturnInstruction, TextBlock

public abstract class TemplateElement
extends TemplateObject
implements TreeNode

Objects that represent elements in the compiled tree representation of the template necessarily descend from this abstract class.

Method Summary

Enumeration
children()
boolean
getAllowsChildren()
TreeNode
getChildAt(int index)
int
getChildCount()
TemplateSequenceModel
getChildNodes()
abstract String
getDescription()
int
getIndex(TreeNode node)
String
getNodeName()
String
getNodeNamespace()
String
getNodeType()
TreeNode
getParent()
TemplateNodeModel
getParentNode()
boolean
isLeaf()
void
setChildAt(int index, TemplateElement element)

Methods inherited from class freemarker.core.TemplateObject

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

Method Details

children

public Enumeration children()

getAllowsChildren

public boolean getAllowsChildren()

getChildAt

public TreeNode getChildAt(int index)

getChildCount

public int getChildCount()

getChildNodes

public TemplateSequenceModel getChildNodes()

getDescription

public abstract String getDescription()

getIndex

public int getIndex(TreeNode node)

getNodeName

public String getNodeName()

getNodeNamespace

public String getNodeNamespace()

getNodeType

public String getNodeType()

getParent

public TreeNode getParent()

getParentNode

public TemplateNodeModel getParentNode()

isLeaf

public boolean isLeaf()

setChildAt

public void setChildAt(int index,
                       TemplateElement element)