freemarker.core
Class TemplateElement
java.lang.Object
freemarker.core.TemplateObject
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.
Methods inherited from class freemarker.core.TemplateObject |
contains, getBeginColumn, getBeginLine, getCanonicalForm, getEndColumn, getEndLine, getEndLocation, getSource, getStartLocation, getTemplate, toString |
TemplateElement
public TemplateElement()
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