public abstract class JNIHandleSet extends Object
JNIHandleSet.newTrackedGlobalRef(com.oracle.svm.jni.nativeapi.JNIEnvironment, com.oracle.svm.jni.nativeapi.JNIObjectHandle) is provided.JvmtiAgentBase| Constructor and Description |
|---|
JNIHandleSet(com.oracle.svm.jni.nativeapi.JNIEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
com.oracle.svm.jni.nativeapi.JNIObjectHandle |
findClass(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
String className)
Returns a local handle to a Java class object.
|
com.oracle.svm.jni.nativeapi.JNIMethodId |
getMethodId(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
com.oracle.svm.jni.nativeapi.JNIObjectHandle clazz,
String name,
String signature,
boolean isStatic)
Returns a JNI method ID of a Java method.
|
com.oracle.svm.jni.nativeapi.JNIMethodId |
getMethodIdOptional(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
com.oracle.svm.jni.nativeapi.JNIObjectHandle clazz,
String name,
String signature,
boolean isStatic)
Returns a JNI method ID of a Java method.
|
com.oracle.svm.jni.nativeapi.JNIObjectHandle |
newClassGlobalRef(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
String className)
A convenience method to return a global handle to a Java class object.
|
com.oracle.svm.jni.nativeapi.JNIObjectHandle |
newTrackedGlobalRef(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
com.oracle.svm.jni.nativeapi.JNIObjectHandle ref)
Creates a global JNI handle of the specified local JNI handle.
|
public JNIHandleSet(com.oracle.svm.jni.nativeapi.JNIEnvironment env)
public com.oracle.svm.jni.nativeapi.JNIObjectHandle findClass(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
String className)
env - JNI environment of the thread running the JVMTI callback.className - The VM type signature of the class.public com.oracle.svm.jni.nativeapi.JNIObjectHandle newClassGlobalRef(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
String className)
JNIHandleSet.destroy(com.oracle.svm.jni.nativeapi.JNIEnvironment). The reference must not be freed manually.
The class must exist. If not found, the VM terminates.env - JNI environment of the thread running the JVMTI callback.className - Java VM type signature of the class.JNIHandleSet.newTrackedGlobalRef(com.oracle.svm.jni.nativeapi.JNIEnvironment, com.oracle.svm.jni.nativeapi.JNIObjectHandle)public com.oracle.svm.jni.nativeapi.JNIMethodId getMethodId(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
com.oracle.svm.jni.nativeapi.JNIObjectHandle clazz,
String name,
String signature,
boolean isStatic)
env - JNI environment of the thread running the JVMTI callback.clazz - Handle to the class containing the method.name - Name of the method.signature - Signature of the method. See the JNI specification for more details.isStatic - Specifies whether the method is static or not.public com.oracle.svm.jni.nativeapi.JNIMethodId getMethodIdOptional(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
com.oracle.svm.jni.nativeapi.JNIObjectHandle clazz,
String name,
String signature,
boolean isStatic)
JNIObjectHandles.nullHandle().env - JNI environment of the thread running the JVMTI callback.clazz - Handle to the class containing the method.name - Name of the method.signature - Signature of the method. See the JNI specification for more details.isStatic - Specifies whether the method is static or not.JNIObjectHandles.nullHandle()
otherwise.public com.oracle.svm.jni.nativeapi.JNIObjectHandle newTrackedGlobalRef(com.oracle.svm.jni.nativeapi.JNIEnvironment env,
com.oracle.svm.jni.nativeapi.JNIObjectHandle ref)
JNIHandleSet.destroy(com.oracle.svm.jni.nativeapi.JNIEnvironment). The handle must not be freed manually.
If the specified handle is a JNIObjectHandles.nullHandle() the VM terminates.env - JNI environment of the thread running the JVMTI callback.ref - A local JNI object handle.