public class EntrypointHelper extends Object
Constructor and Description |
---|
EntrypointHelper() |
Modifier and Type | Method and Description |
---|---|
static RVMField |
getField(Class<?> klass,
String member,
Class<?> type)
Get description of virtual machine field.
|
(package private) static RVMField |
getField(String klass,
String member,
Class<?> type)
Get description of virtual machine field.
|
static RVMField |
getField(String klass,
String member,
String descriptor) |
private static RVMMember |
getMember(String classDescriptor,
String memberName,
String memberDescriptor)
Get description of virtual machine component (field or method).
|
static RVMMethod |
getMethod(Class<?> klass,
Atom member,
Class<?>... argTypes) |
static NormalMethod |
getMethod(Class<?> klass,
String member,
String descriptor)
Get description of virtual machine method.
|
static NormalMethod |
getMethod(String klass,
String member,
String descriptor) |
static NormalMethod |
getMethod(String klass,
String member,
String descriptor,
boolean runtimeServiceMethod) |
static MethodReference |
getMethodReference(Class<?> klass,
Atom member,
Class<?>... argTypes) |
private static String |
makeDescriptor(Class<?>... argTypes) |
private static void |
verifyPresenceOfEntrypointAnnotation(RVMMember member) |
public EntrypointHelper()
private static RVMMember getMember(String classDescriptor, String memberName, String memberDescriptor)
Note: This is method is intended for use only by VM classes that need to address their own fields and methods in the runtime virtual machine image. It should not be used for general purpose class loading.
classDescriptor
- class descriptor - something like "Lorg/jikesrvm/RuntimeEntrypoints;"memberName
- member name - something like "invokestatic"memberDescriptor
- member descriptor - something like "()V"private static void verifyPresenceOfEntrypointAnnotation(RVMMember member)
public static NormalMethod getMethod(String klass, String member, String descriptor, boolean runtimeServiceMethod)
public static NormalMethod getMethod(String klass, String member, String descriptor)
private static String makeDescriptor(Class<?>... argTypes)
public static MethodReference getMethodReference(Class<?> klass, Atom member, Class<?>... argTypes)
public static RVMField getField(Class<?> klass, String member, Class<?> type)
klass
- class containing fieldmember
- member name - something like "invokestatic"type
- of fieldstatic RVMField getField(String klass, String member, Class<?> type)
klass
- class containing fieldmember
- member name - something like "invokestatic"type
- of fieldpublic static NormalMethod getMethod(Class<?> klass, String member, String descriptor)
klass
- class containing methodmember
- member name - something like "invokestatic"descriptor
- member descriptor - something like "()V"