niagara-ax/modules/cfr_output/javax/baja/util/BObjectArrayCursor.java
2026-03-17 13:31:18 -07:00

58 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package javax.baja.util;
import javax.baja.sys.BObject;
import javax.baja.sys.Context;
import javax.baja.sys.Cursor;
public class BObjectArrayCursor
implements Cursor {
private Context cx;
private BObject[] objs;
private int index;
public Context getContext() {
return this.cx;
}
public BObject get() {
return this.objs[this.index];
}
public boolean next() {
if (this.index != this.objs.length) {
++this.index;
}
boolean bl = false;
if (this.index < this.objs.length) {
bl = true;
}
return bl;
}
public boolean nextComponent() {
while (this.next()) {
if (!this.get().isComponent()) continue;
return true;
}
return false;
}
public boolean next(Class clazz) {
while (this.next()) {
if (!clazz.isInstance(this.get())) continue;
return true;
}
return false;
}
public BObjectArrayCursor(BObject[] bObjectArray, Context context) {
this.objs = bObjectArray;
this.cx = context;
this.index = -1;
}
}