public final class ClassLoaderProxy extends Object
Constructor and Description |
---|
ClassLoaderProxy() |
Modifier and Type | Method and Description |
---|---|
static TypeReference |
findCommonSuperclass(TypeReference t1,
TypeReference t2)
Returns a common superclass of the two types.
|
static ClassConstantOperand |
getClassFromConstantPool(RVMClass klass,
int index) |
static DoubleConstantOperand |
getDoubleFromConstantPool(RVMClass klass,
int index) |
static FloatConstantOperand |
getFloatFromConstantPool(RVMClass klass,
int index) |
static IntConstantOperand |
getIntFromConstantPool(RVMClass klass,
int index) |
static LongConstantOperand |
getLongFromConstantPool(RVMClass klass,
int index) |
static StringConstantOperand |
getStringFromConstantPool(RVMClass klass,
int index) |
static byte |
includesType(TypeReference parentType,
TypeReference childType)
Return Constants.YES if the parent type is defintely a supertype
of the child type.
|
static RVMMethod |
lookupMethod(RVMClass cls,
MethodReference ref)
Find the method of the given class that matches the given descriptor.
|
public ClassLoaderProxy()
public static TypeReference findCommonSuperclass(TypeReference t1, TypeReference t2)
t1
- first typet2
- second typenull
if there's nonepublic static byte includesType(TypeReference parentType, TypeReference childType)
Return Constants.NO if the parent type is definitely not a supertype of the child type.
Return Constants.MAYBE if the question cannot be currently answered (for example if one/both of the classes is not resolved)
Takes into account the special 'null-type', which corresponds to a null
constant.
parentType
- parent typechildType
- child typepublic static RVMMethod lookupMethod(RVMClass cls, MethodReference ref)
cls
- the method's classref
- name and descriptor of the methodnull
if none was foundpublic static IntConstantOperand getIntFromConstantPool(RVMClass klass, int index)
public static DoubleConstantOperand getDoubleFromConstantPool(RVMClass klass, int index)
public static FloatConstantOperand getFloatFromConstantPool(RVMClass klass, int index)
public static LongConstantOperand getLongFromConstantPool(RVMClass klass, int index)
public static StringConstantOperand getStringFromConstantPool(RVMClass klass, int index)
public static ClassConstantOperand getClassFromConstantPool(RVMClass klass, int index)