2026-03-17 13:31:18 -07:00

131 lines
2.9 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package com.tridium.util;
import javax.baja.sys.Action;
import javax.baja.sys.BObject;
import javax.baja.sys.Context;
import javax.baja.sys.Cursor;
import javax.baja.sys.Property;
import javax.baja.sys.Slot;
import javax.baja.sys.SlotCursor;
import javax.baja.sys.Topic;
import javax.baja.sys.Type;
public class CompoundCursor
implements SlotCursor {
private Cursor[] subs;
private int index;
private Context context;
public Context getContext() {
return this.context;
}
public BObject target() {
return ((SlotCursor)this.subs[this.index]).target();
}
/*
* Unable to fully structure code
*/
public boolean next() {
if (this.index != this.subs.length) ** GOTO lbl4
return false;
lbl-1000:
// 1 sources
{
++this.index;
lbl4:
// 2 sources
** while (this.index != this.subs.length && !this.subs[this.index].next())
}
lbl5:
// 1 sources
v0 = false;
if (this.index != this.subs.length) {
v0 = true;
}
return v0;
}
public boolean nextObject() {
return ((SlotCursor)this.subs[this.index]).nextObject();
}
public boolean nextComponent() {
return this.subs[this.index].nextComponent();
}
public boolean next(Class clazz) {
return this.subs[this.index].next(clazz);
}
public Slot slot() {
return ((SlotCursor)this.subs[this.index]).slot();
}
public Property property() {
return ((SlotCursor)this.subs[this.index]).property();
}
public int getTypeAccess() {
return ((SlotCursor)this.subs[this.index]).getTypeAccess();
}
public Action action() {
return ((SlotCursor)this.subs[this.index]).action();
}
public Topic topic() {
return ((SlotCursor)this.subs[this.index]).topic();
}
public BObject get() {
return this.subs[this.index].get();
}
public boolean getBoolean() {
return ((SlotCursor)this.subs[this.index]).getBoolean();
}
public int getInt() {
return ((SlotCursor)this.subs[this.index]).getInt();
}
public long getLong() {
return ((SlotCursor)this.subs[this.index]).getLong();
}
public float getFloat() {
return ((SlotCursor)this.subs[this.index]).getFloat();
}
public double getDouble() {
return ((SlotCursor)this.subs[this.index]).getDouble();
}
public String getString() {
return ((SlotCursor)this.subs[this.index]).getString();
}
public CompoundCursor() {
this(new Cursor[0], null, null);
}
public CompoundCursor(Cursor[] cursorArray, Context context) {
this(cursorArray, context, null);
}
public CompoundCursor(Cursor[] cursorArray, Context context, Type type) {
this.subs = cursorArray;
this.context = context;
this.index = 0;
}
}