* containing Tree instance.
*/
- class PreOrder implements Iterator {
+ public class PreOrder implements Iterator {
private boolean selfNotReturned = true;
private int nextChildIndex = 0; // N.B. this must be kept as
// the index of the active child until that child is exhausted.
* containing Tree instance.
*/
- class PostOrder implements Iterator {
+ public class PostOrder implements Iterator {
private boolean selfReturned = false;
private int nextChildIndex = 0; // N.B. this must be kept as
// the index of the active child until that child is exhausted.
* containing Tree instance.
*/
- class Ancestor implements Iterator {
+ public class Ancestor implements Iterator {
private Node nextAncestor;
private int age;
* behaviour.
*/
- class FollowingSibling implements ListIterator {
+ public class FollowingSibling implements ListIterator {
private ListIterator listIterator;
private ArrayList rootDummy = new ArrayList();
* behaviour.
*/
- class PrecedingSibling implements ListIterator {
+ public class PrecedingSibling implements ListIterator {
private ListIterator listIterator;
private ArrayList rootDummy = new ArrayList();