getChildren()
; other objects are assumed to have no children. If the tree is modified during the enumeration, strange things may happen.
Example use: Tree t; Walker w = new Walker(t); while (w.hasMoreElements()) { Tree node = (Tree) w.nextNode(); System.out.println(node.toString()); }
|
|
|
|
|
|