public final class JNIReflectionDictionary extends Object
Modifier and Type | Method and Description |
---|---|
Collection<JNIAccessibleClass> |
getClasses() |
Class<?> |
getClassObjectByName(String name) |
JNINativeLinkage |
getClosestLinkage(String declaringClass,
String name,
String descriptor)
Gets the linkage for a method that most closely matches a given method description above the
fuzzy matching threshold defined by
OptionsParser.FUZZY_MATCH_THRESHOLD . |
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 JNINativeLinkage getClosestLinkage(String declaringClass, String name, String descriptor)
OptionsParser.FUZZY_MATCH_THRESHOLD
.declaringClass
- the name of the class declaring the
native methodname
- the name of the native methoddescriptor
- the descriptor of the native
methoddeclaringClass
,
name
and descriptor
or null
if there is no close matchpublic 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)