freemarker.core
Class TemplateElement

java.lang.Object
  extended by freemarker.core.TemplateObject
      extended by freemarker.core.TemplateElement
All Implemented Interfaces:
TreeNode
Direct Known 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.


Constructor Summary
TemplateElement()
           
 
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, 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

TemplateElement

public TemplateElement()
Method Detail

getDescription

public abstract String getDescription()

getParentNode

public TemplateNodeModel getParentNode()

getNodeNamespace

public String getNodeNamespace()

getNodeType

public String getNodeType()

getChildNodes

public TemplateSequenceModel getChildNodes()

getNodeName

public String getNodeName()

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeNode

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface TreeNode

getIndex

public int getIndex(TreeNode node)
Specified by:
getIndex in interface TreeNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface TreeNode

children

public Enumeration children()
Specified by:
children in interface TreeNode

getChildAt

public TreeNode getChildAt(int index)
Specified by:
getChildAt in interface TreeNode

setChildAt

public void setChildAt(int index,
                       TemplateElement element)

getParent

public TreeNode getParent()
Specified by:
getParent in interface TreeNode