summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ShallowEnumeration.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/ShallowEnumeration.java')
-rw-r--r--NET/worlds/scape/ShallowEnumeration.java72
1 files changed, 72 insertions, 0 deletions
diff --git a/NET/worlds/scape/ShallowEnumeration.java b/NET/worlds/scape/ShallowEnumeration.java
new file mode 100644
index 0000000..7a667e8
--- /dev/null
+++ b/NET/worlds/scape/ShallowEnumeration.java
@@ -0,0 +1,72 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */ import java.util.Vector;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class ShallowEnumeration
+/* */ extends DeepEnumeration<Object>
+/* */ {
+/* */ 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
+ */ \ No newline at end of file