|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfovis.tree.StructureChecker
public class StructureChecker
Checks the integrity of a tree.
Constructor Summary | |
---|---|
StructureChecker(Tree tree)
Constructor for StructureChecker. |
Method Summary | |
---|---|
static boolean |
check(Tree tree)
|
void |
postorder(int node)
Method called when all the children of the node have been traversed. |
boolean |
preorder(int node)
Method called when the node is initially reached. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructureChecker(Tree tree)
Method Detail |
---|
public boolean preorder(int node)
DepthFirst.Visitor
preorder
in interface DepthFirst.Visitor
node
- the reached node.
public void postorder(int node)
DepthFirst.Visitor
postorder
in interface DepthFirst.Visitor
node
- the reached node.public static boolean check(Tree tree)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |