|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.util.reflection.ClassTree.ClassTreeNode
Inner class representing each node in the tree. Holds references to the nodes children, parent and provides the Comparable interface for sorting by inheritance hierarchy.
Field Summary | |
protected List |
children
The map of children classes to their class names |
protected Class |
objectClass
The class of this node |
protected List |
parents
A reference to the parent node of this node |
Constructor Summary | |
ClassTree.ClassTreeNode(Class objectClass)
Constructs a ClassTreeNode with the given Class. |
Method Summary | |
void |
addChild(ClassTree.ClassTreeNode node)
|
void |
addParent(ClassTree.ClassTreeNode node)
|
static ClassTree.ClassTreeNode |
buildNode(Class objectClass)
|
protected static ClassTree.ClassTreeNode |
buildNode(Class objectClass,
Map allNodes)
|
int |
compareTo(Object obj)
Compares one class to another class by their inheritance tree. |
boolean |
equals(Object obj)
|
List |
getChildren()
|
String |
getClassName()
|
Class |
getObjectClass()
|
List |
getParents()
|
int |
hashCode()
|
boolean |
removeChild(ClassTree.ClassTreeNode node)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Class objectClass
protected List children
protected List parents
Constructor Detail |
public ClassTree.ClassTreeNode(Class objectClass)
Constructs a ClassTreeNode with the given Class.
objectClass
- the Class of the nodeMethod Detail |
public static ClassTree.ClassTreeNode buildNode(Class objectClass)
protected static ClassTree.ClassTreeNode buildNode(Class objectClass, Map allNodes)
public List getParents()
public void addParent(ClassTree.ClassTreeNode node)
public boolean removeChild(ClassTree.ClassTreeNode node)
public void addChild(ClassTree.ClassTreeNode node)
public List getChildren()
public boolean equals(Object obj)
equals
in class Object
public Class getObjectClass()
public String getClassName()
public int hashCode()
hashCode
in class Object
public int compareTo(Object obj)
Compares one class to another class by their inheritance tree.
compareTo
in interface Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |