freemarker.core
Class TemplateElement
java.lang.Object
freemarker.core.TemplateObject
freemarker.core.TemplateElement
- All Implemented Interfaces:
- javax.swing.tree.TreeNode
- Direct Known Subclasses:
- Comment, DebugBreak, LibraryLoad, Macro, TextBlock
- public abstract class TemplateElement
- extends TemplateObject
- implements javax.swing.tree.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TemplateElement
public TemplateElement()
getDescription
public abstract java.lang.String getDescription()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Specified by:
getIndex
in interface javax.swing.tree.TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface javax.swing.tree.TreeNode
children
public java.util.Enumeration children()
- Specified by:
children
in interface javax.swing.tree.TreeNode
getChildAt
public javax.swing.tree.TreeNode getChildAt(int index)
- Specified by:
getChildAt
in interface javax.swing.tree.TreeNode
setChildAt
public void setChildAt(int index,
TemplateElement element)
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interface javax.swing.tree.TreeNode