123 lines
3.3 KiB
Java
123 lines
3.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.space;
|
|
|
|
import javax.baja.agent.BIAgent;
|
|
import javax.baja.naming.BHost;
|
|
import javax.baja.naming.BISession;
|
|
import javax.baja.naming.BOrd;
|
|
import javax.baja.nav.BINavNode;
|
|
import javax.baja.nav.BNavContainer;
|
|
import javax.baja.spy.SpyWriter;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.util.LexiconText;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public abstract class BSpace
|
|
extends BNavContainer
|
|
implements BIAgent {
|
|
public static final Type TYPE;
|
|
static /* synthetic */ Class class$javax$baja$space$BSpace;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public boolean isMounted() {
|
|
boolean bl = false;
|
|
if (this.getHost() != null) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public BHost getHost() {
|
|
BINavNode bINavNode = this.getNavParent();
|
|
if (bINavNode instanceof BHost) {
|
|
return (BHost)bINavNode;
|
|
}
|
|
if (bINavNode instanceof BISession) {
|
|
return ((BISession)bINavNode).getHost();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public BISession getSession() {
|
|
BINavNode bINavNode = this.getNavParent();
|
|
if (bINavNode instanceof BISession) {
|
|
return (BISession)bINavNode;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public BOrd getAbsoluteOrd() {
|
|
BHost bHost = this.getHost();
|
|
if (bHost == null) {
|
|
return null;
|
|
}
|
|
return BOrd.make(bHost.getAbsoluteOrd(), this.getOrdInHost());
|
|
}
|
|
|
|
public BOrd getOrdInHost() {
|
|
BISession bISession = this.getSession();
|
|
if (bISession == null) {
|
|
return null;
|
|
}
|
|
return BOrd.make(bISession.getOrdInHost(), this.getOrdInSession());
|
|
}
|
|
|
|
public abstract BOrd getOrdInSession();
|
|
|
|
public BOrd getNavOrd() {
|
|
return this.getAbsoluteOrd();
|
|
}
|
|
|
|
public void spy(SpyWriter spyWriter) throws Exception {
|
|
spyWriter.startProps();
|
|
spyWriter.trTitle("Space", 2);
|
|
spyWriter.prop((Object)"isMounted", this.isMounted());
|
|
spyWriter.prop((Object)"host", this.getHost());
|
|
spyWriter.prop((Object)"session", this.getSession());
|
|
spyWriter.prop((Object)"absoluteOrd", this.getAbsoluteOrd());
|
|
spyWriter.prop((Object)"ordInHost", this.getOrdInHost());
|
|
spyWriter.prop((Object)"ordInSession", this.getOrdInSession());
|
|
spyWriter.prop((Object)"navOrd", this.getNavOrd());
|
|
spyWriter.endProps();
|
|
super.spy(spyWriter);
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
public BSpace(String string, LexiconText lexiconText) {
|
|
super(string, lexiconText);
|
|
}
|
|
|
|
public BSpace(String string) {
|
|
super(string);
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$space$BSpace;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$space$BSpace = BSpace.class("[Ljavax.baja.space.BSpace;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
}
|
|
|