Commit 48a590fe authored by Lubomir Bulej's avatar Lubomir Bulej

ShadowArrayClass: renamed to ArrayShadowClass

ShadowCommonClass: renamed to ObjectShadowClass
ShadowPrimitiveClass: renamed to PrimitiveShadowClass
ShadowClassTable: updated to reflect the changes
parent bc2aba42
......@@ -7,7 +7,7 @@ import org.objectweb.asm.Type;
import ch.usi.dag.dislreserver.DiSLREServerFatalException;
public class ShadowArrayClass extends ShadowClass {
public class ArrayShadowClass extends ShadowClass {
private final Type type;
......@@ -18,7 +18,7 @@ public class ShadowArrayClass extends ShadowClass {
//
ShadowArrayClass (
ArrayShadowClass (
final long netReference, final ShadowObject classLoader,
final ShadowClass superClass, final ShadowClass arrayComponentClass,
final Type type
......@@ -45,7 +45,7 @@ public class ShadowArrayClass extends ShadowClass {
@Override
public ShadowClass getComponentType () {
// return arrayComponentClass;
throw new DiSLREServerFatalException ("ShadowArrayClass.getComponentType not implemented");
throw new DiSLREServerFatalException ("ArrayShadowClass.getComponentType not implemented");
}
......@@ -61,7 +61,7 @@ public class ShadowArrayClass extends ShadowClass {
equals (klass)
||
(
(klass instanceof ShadowArrayClass)
(klass instanceof ArrayShadowClass)
&&
arrayComponentClass.isAssignableFrom (klass.getComponentType ())
);
......
......@@ -15,7 +15,7 @@ import org.objectweb.asm.tree.MethodNode;
import ch.usi.dag.dislreserver.DiSLREServerFatalException;
class ShadowCommonClass extends ShadowClass {
class ObjectShadowClass extends ShadowClass {
// TODO ! is this implementation of methods really working ??
......@@ -28,7 +28,7 @@ class ShadowCommonClass extends ShadowClass {
private String name;
ShadowCommonClass (
ObjectShadowClass (
long net_ref, String classSignature, ShadowObject classLoader,
ShadowClass superClass, byte [] classCode
) {
......
......@@ -3,12 +3,12 @@ package ch.usi.dag.dislreserver.shadow;
import org.objectweb.asm.Type;
public class ShadowPrimitiveClass extends ShadowClass {
public class PrimitiveShadowClass extends ShadowClass {
private Type t;
ShadowPrimitiveClass (long net_ref, ShadowObject classLoader, Type t) {
PrimitiveShadowClass (long net_ref, ShadowObject classLoader, Type t) {
super (net_ref, classLoader);
this.t = t;
}
......
......@@ -68,7 +68,7 @@ public class ShadowClassTable {
if (t.getSort () == Type.ARRAY) {
// TODO unknown array component type
klass = new ShadowArrayClass (net_ref, loader, superClass, null, t);
klass = new ArrayShadowClass (net_ref, loader, superClass, null, t);
} else if (t.getSort () == Type.OBJECT) {
ConcurrentHashMap <String, byte []> classNameMap;
......@@ -90,12 +90,12 @@ public class ShadowClassTable {
);
}
klass = new ShadowCommonClass (
klass = new ObjectShadowClass (
net_ref, classSignature, loader, superClass, classCode
);
} else {
klass = new ShadowPrimitiveClass (net_ref, loader, t);
klass = new PrimitiveShadowClass (net_ref, loader, t);
}
int classID = NetReferenceHelper.get_class_id (net_ref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment