/* */ package NET.worlds.scape; /* */ /* */ import java.util.Vector; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class ShallowEnumeration /* */ extends DeepEnumeration /* */ { /* */ public ShallowEnumeration(SuperRoot o) /* */ { /* 20 */ this.roots.addElement(o); /* 21 */ o.getChildren(this); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ protected void getNextElement() /* */ { /* 44 */ this.valueRetrieved = false; /* 45 */ if (!this.roots.isEmpty()) { /* 46 */ this.nextValue = ((SuperRoot)this.roots.elementAt(this.roots.size() - 1)); /* 47 */ assert (this.nextValue != null); /* 48 */ this.roots.removeElementAt(this.roots.size() - 1); /* 49 */ } else if (this.currentIndex >= 0) { /* */ try { /* 51 */ this.nextValue = ((SuperRoot)this.currentVector.elementAt(this.currentIndex--)); /* */ } catch (ArrayIndexOutOfBoundsException e) { /* 53 */ this.currentIndex = (this.currentVector.size() - 1); /* 54 */ getNextElement(); /* */ } /* 56 */ if ((!$assertionsDisabled) && (this.nextValue == null)) throw new AssertionError(); /* 57 */ } else if (!this.vectors.isEmpty()) { /* 58 */ this.currentVector = ((Vector)this.vectors.elementAt(this.vectors.size() - 1)); /* 59 */ this.currentIndex = (this.currentVector.size() - 1); /* 60 */ this.vectors.removeElementAt(this.vectors.size() - 1); /* 61 */ getNextElement(); /* */ } else { /* 63 */ this.nextValue = null; /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ShallowEnumeration.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */