org.shiftone.jrat.provider.tree
Class TreeNode

java.lang.Object
  extended by 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

Field Summary
protected  java.util.HashMap children
           
protected  MethodKey methodKey
           
protected  TreeNode parent
           
 
Constructor Summary
TreeNode()
           
TreeNode(MethodKey methodKey, TreeNode treeNode)
           
 
Method Summary
 Accumulator getAccumulator()
           
 TreeNode getChild(MethodKey methodKey)
          Method gets AND CREATES IF NEEDED the requested tree node
 java.util.List getChildren()
           
 MethodKey getMethodKey()
           
 TreeNode getParentNode()
           
 boolean isRootNode()
           
 void readExternal(java.io.ObjectInput in)
           
 void reset()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodKey

protected MethodKey methodKey

parent

protected TreeNode parent

children

protected java.util.HashMap children
Constructor Detail

TreeNode

public TreeNode()

TreeNode

public TreeNode(MethodKey methodKey,
                TreeNode treeNode)
Method Detail

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()