org.shiftone.jrat.provider.tree
Class TreeNode
java.lang.Object
org.shiftone.jrat.provider.tree.TreeNode
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
public class TreeNode
- extends java.lang.Object
- implements java.io.Externalizable
Class TreeNode
- Author:
- jeff@shiftone.org (Jeff Drost)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
methodKey
protected MethodKey methodKey
parent
protected TreeNode parent
children
protected java.util.HashMap children
TreeNode
public TreeNode()
TreeNode
public TreeNode(MethodKey methodKey,
TreeNode treeNode)
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
getChildren
public java.util.List getChildren()
getChild
public TreeNode getChild(MethodKey methodKey)
- Method gets AND CREATES IF NEEDED the requested tree node
getParentNode
public final TreeNode getParentNode()
isRootNode
public final boolean isRootNode()
getAccumulator
public Accumulator getAccumulator()
getMethodKey
public MethodKey getMethodKey()
reset
public void reset()