public final class JNIReflectionDictionary extends Object
Modifier and Type | Method and Description |
---|---|
Collection<JNIAccessibleClass> |
getClasses() |
Class<?> |
getClassObjectByName(String name) |
JNIFieldId |
getDeclaredFieldID(Class<?> classObject,
String name,
boolean isStatic) |
JNIMethodId |
getDeclaredMethodID(Class<?> classObject,
JNIAccessibleMethodDescriptor descriptor,
boolean isStatic) |
JNIFieldId |
getFieldID(Class<?> clazz,
String name,
boolean isStatic) |
String |
getFieldNameByID(Class<?> classObject,
JNIFieldId id) |
JNINativeLinkage |
getLinkage(String declaringClass,
String name,
String descriptor)
Gets the linkage for a native method.
|
static JNIAccessibleMethod |
getMethodByID(JNIMethodId method) |
static JNIAccessibleMethodDescriptor |
getMethodDescriptor(JNIAccessibleMethod method) |
JNIMethodId |
getMethodID(Class<?> classObject,
String name,
String signature,
boolean isStatic) |
static JNIReflectionDictionary |
singleton() |
void |
unsetEntryPoints(String declaringClass) |
public static JNIReflectionDictionary singleton()
public Collection<JNIAccessibleClass> getClasses()
public JNINativeLinkage getLinkage(String declaringClass, String name, String descriptor)
declaringClass
- the name of the class declaring the
native methodname
- the name of the native methoddescriptor
- the descriptor of the native
methodnull
if no linkage existspublic void unsetEntryPoints(String declaringClass)
public JNIMethodId getDeclaredMethodID(Class<?> classObject, JNIAccessibleMethodDescriptor descriptor, boolean isStatic)
public JNIMethodId getMethodID(Class<?> classObject, String name, String signature, boolean isStatic)
public static JNIAccessibleMethod getMethodByID(JNIMethodId method)
public JNIFieldId getDeclaredFieldID(Class<?> classObject, String name, boolean isStatic)
public JNIFieldId getFieldID(Class<?> clazz, String name, boolean isStatic)
public String getFieldNameByID(Class<?> classObject, JNIFieldId id)
public static JNIAccessibleMethodDescriptor getMethodDescriptor(JNIAccessibleMethod method)