72 lines
2.2 KiB
Java
72 lines
2.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.space;
|
|
|
|
import javax.baja.naming.BOrdScheme;
|
|
import javax.baja.naming.InvalidOrdBaseException;
|
|
import javax.baja.naming.OrdQuery;
|
|
import javax.baja.naming.OrdTarget;
|
|
import javax.baja.naming.SyntaxException;
|
|
import javax.baja.naming.UnresolvedException;
|
|
import javax.baja.space.BComponentSpace;
|
|
import javax.baja.sys.BComponent;
|
|
import javax.baja.sys.BObject;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BHandleScheme
|
|
extends BOrdScheme {
|
|
public static final BHandleScheme INSTANCE = new BHandleScheme();
|
|
public static final Type TYPE;
|
|
static /* synthetic */ Class class$javax$baja$space$BHandleScheme;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public OrdTarget resolve(OrdTarget ordTarget, OrdQuery ordQuery) throws SyntaxException, UnresolvedException {
|
|
BObject bObject = ordTarget.get();
|
|
BComponentSpace bComponentSpace = null;
|
|
String string = ordQuery.getBody();
|
|
if (bObject instanceof BComponentSpace) {
|
|
bComponentSpace = (BComponentSpace)bObject;
|
|
} else if (bObject instanceof BComponent) {
|
|
bComponentSpace = bObject.asComponent().getComponentSpace();
|
|
}
|
|
if (bComponentSpace == null) {
|
|
throw new InvalidOrdBaseException("Not based via ComponentSpace");
|
|
}
|
|
return new OrdTarget(ordTarget, bComponentSpace.resolveByHandle(string));
|
|
}
|
|
|
|
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());
|
|
}
|
|
}
|
|
|
|
private BHandleScheme() {
|
|
super("h");
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$space$BHandleScheme;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$space$BHandleScheme = BHandleScheme.class("[Ljavax.baja.space.BHandleScheme;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
}
|
|
|