JNICalls also perform JNI call tracing and exception handling. All JNI calls into HotSpot
must use this support to correctly merge HotSpot and native image stack traces.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static @interface | JNICalls.
Marker annotation for the helper methods for calling a method in HotSpot. |
| public static interface | JNICalls.
Represents a JNI method. |
| Modifier and Type | Field and Description |
|---|---|
| private final JNIExceptionWrapper. | |
| private static final JNICalls | |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public byte | |
| public char | |
| public double | |
| public float | |
| public int | |
| public <R extends JNI. | |
| public long | |
| public <R extends JNI. | |
| public short | |
| public boolean | |
| public int | |
| public <R extends JNI. | |
| public long | |
| public void | |
| public void | |
| public static JNICalls | createWithExceptionHandler(JNIExceptionWrapper.
Creates a new |
| public static JNICalls | |
| private static String | |
| private static void | |
| private static void | |
| private static void |
| exceptionHandler | back to summary |
|---|---|
| private final JNIExceptionWrapper. | |
| INSTANCE | back to summary |
|---|---|
| private static final JNICalls INSTANCE | |
| inTrace | back to summary |
|---|---|
| private static final ThreadLocal<Boolean> inTrace | |
| JNICalls | back to summary |
|---|---|
| private JNICalls(JNIExceptionWrapper. | |
| callBoolean | back to summary |
|---|---|
| public boolean callBoolean(JNI. Performs a JNI call of a method returning
| |
| callByte | back to summary |
|---|---|
| public byte callByte(JNI. Performs a JNI call of a method returning
| |
| callChar | back to summary |
|---|---|
| public char callChar(JNI. Performs a JNI call of a method returning
| |
| callDouble | back to summary |
|---|---|
| public double callDouble(JNI. Performs a JNI call of a method returning
| |
| callFloat | back to summary |
|---|---|
| public float callFloat(JNI. Performs a JNI call of a method returning
| |
| callInt | back to summary |
|---|---|
| public int callInt(JNI. Performs a JNI call of a method returning
| |
| callJObject | back to summary |
|---|---|
| public <R extends JNI. Performs a JNI call of a method returning
| |
| callLong | back to summary |
|---|---|
| public long callLong(JNI. Performs a JNI call of a method returning
| |
| callNewObject | back to summary |
|---|---|
| public <R extends JNI. Creates a new object instance using a given constructor.
| |
| callShort | back to summary |
|---|---|
| public short callShort(JNI. Performs a JNI call of a method returning
| |
| callStaticBoolean | back to summary |
|---|---|
| public boolean callStaticBoolean(JNI. Performs a JNI call of a static method returning
| |
| callStaticInt | back to summary |
|---|---|
| public int callStaticInt(JNI. Performs a JNI call of a static method returning
| |
| callStaticJObject | back to summary |
|---|---|
| public <R extends JNI. Performs a JNI call of a static method returning
| |
| callStaticLong | back to summary |
|---|---|
| public long callStaticLong(JNI. Performs a JNI call of a static method returning
| |
| callStaticVoid | back to summary |
|---|---|
| public void callStaticVoid(JNI. Performs a JNI call of a static void method.
| |
| callVoid | back to summary |
|---|---|
| public void callVoid(JNI. Performs a JNI call of a void method.
| |
| createWithExceptionHandler | back to summary |
|---|---|
| public static JNICalls createWithExceptionHandler(JNIExceptionWrapper. Creates a new | |
| getDefault | back to summary |
|---|---|
| public static JNICalls getDefault() Returns a | |
| toSimpleName | back to summary |
|---|---|
| private static String toSimpleName(String fqn) | |
| traceCall | back to summary |
|---|---|
| private static void traceCall(JNI. | |
| traceCall | back to summary |
|---|---|
| private static void traceCall(JNI. | |
| traceCallImpl | back to summary |
|---|---|
| private static void traceCallImpl(JNI. | |
| Modifier and Type | Method and Description |
|---|---|
| public static JNICalls. | |
| public static JNICalls. | |
| public String | |
| public JNI. |
| findMethod | back to summary |
|---|---|
| public static JNICalls. Finds a | |
| findMethod | back to summary |
|---|---|
| public static JNICalls. Finds a | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Returns a method display name used for logging. | |
| getJMethodID | back to summary |
|---|---|
| public JNI. Returns a method JNI | |