|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.runtime.EntrypointHelper
public class EntrypointHelper
Helper class for retrieving entrypoints. Entrypoints are fields and methods of the virtual machine that are needed by compiler-generated machine code or C runtime code.
Constructor Summary | |
---|---|
EntrypointHelper()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntrypointHelper()
Method Detail |
---|
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"
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 RVMMethod getMethod(Class<?> klass, Atom member, Class<?>... argTypes)
public static MethodReference getMethodReference(Class<?> klass, Atom member, Class<?>... argTypes)
public static RVMField getField(String klass, String member, String descriptor)
public static RVMField getField(Class<?> klass, String member, Class<?> type)
klass
- class containing fieldmember
- member name - something like "invokestatic"type
- of field
static RVMField getField(String klass, String member, Class<?> type)
klass
- class containing fieldmember
- member name - something like "invokestatic"type
- of field
public static NormalMethod getMethod(Class<?> klass, String member, String descriptor)
klass
- class containing methodmember
- member name - something like "invokestatic"descriptor
- member descriptor - something like "()V"
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |