JNIEnv
value for the current thread within the native method call.
If the native method call returns a non-primitive value, the return value must be
set within the try-with-resources statement and then
retrieved and returned outside the try-with-resources statement.
This is necessary to support use of JNI local frames.
| Modifier and Type | Field and Description |
|---|---|
| private final JNI. | |
| private JNIMethodScope | |
| pack-priv HSObject | |
| private JNI. | objResult
Used to copy the handle to an object return value out of the JNI local frame. |
| private final JNIMethodScope | |
| private final String | scopeName
The name for this scope. |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| public final int | |
| public static JNI. | |
| public JNI. | |
| public <R extends JNI. | |
| public static JNIMethodScope | |
| public static JNIMethodScope | |
| public void | |
| public String |
| env | back to summary |
|---|---|
| private final JNI. | |
| leaf | back to summary |
|---|---|
| private JNIMethodScope leaf | |
| locals | back to summary |
|---|---|
| pack-priv HSObject locals List of scope local | |
| objResult | back to summary |
|---|---|
| private JNI. Used to copy the handle to an object return value out of the JNI local frame. | |
| parent | back to summary |
|---|---|
| private final JNIMethodScope parent | |
| scopeName | back to summary |
|---|---|
| private final String scopeName The name for this scope. | |
| topScope | back to summary |
|---|---|
| private static final ThreadLocal<JNIMethodScope> topScope | |
| JNIMethodScope | back to summary |
|---|---|
| public JNIMethodScope(String scopeName, JNI. Enters the scope of an native method call.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| depth | back to summary |
|---|---|
| public final int depth() | |
| env | back to summary |
|---|---|
| public static JNI. Gets the | |
| getEnv | back to summary |
|---|---|
| public JNI. | |
| getObjectResult | back to summary |
|---|---|
public <R extends JNI.
| |
| scope | back to summary |
|---|---|
| public static JNIMethodScope scope() Gets the inner most | |
| scopeOrNull | back to summary |
|---|---|
| public static JNIMethodScope scopeOrNull() Gets the inner most | |
| setObjectResult | back to summary |
|---|---|
| public void setObjectResult(JNI. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |