最終更新:2018-09-03 (月) 16:30:53 (2054d)  

JNI/関数
Top / JNI / 関数

http://docs.oracle.com/javase/jp/1.5.0/guide/jni/spec/invocation.html

JNIEnv

  • 各関数は、「JNIEnv」引数を介して、固定オフセットからアクセスできます。「JNIEnv」型は、すべての JNI 関数のポインタを格納する構造体を指すポインタです。

呼び出し API の関数

JNI_OnLoad

  • ネイティブライブラリがロードされると (たとえば System.loadLibrary により)、VM は JNI_OnLoad? を呼び出します

JNI_OnUnload

  • ネイティブライブラリを含むクラスローダのガベージコレクションの際に、VM は JNI_OnUnload を呼び出します

JNI_GetDefaultJavaVMInitArgs?

JNI_GetCreatedJavaVMs?

JNI_CreateJavaVM?

DestroyJavaVM?

AttachCurrentThread

AttachCurrentThreadAsDaemon?

DetachCurrentThread?

GetEnv?

JNIEnv/関数

  • GetVersion
  • DefineClass?
  • FindClass
  • FromReflectedMethod?
  • FromReflectedField?
  • ToReflectedMethod?
  • GetSuperclass?
  • IsAssignableFrom?
  • ToReflectedField?
  • Throw?
  • ThrowNew?
  • ExceptionOccurred?
  • ExceptionDescribe?
  • ExceptionClear?
  • FatalError?
  • PushLocalFrame?
  • PopLocalFrame?
  • NewGlobalRef
  • DeleteGlobalRef?
  • DeleteLocalRef?
  • IsSameObject?
  • NewLocalRef?
  • EnsureLocalCapacity?
  • AllocObject?
  • NewObject
  • NewObjectV?
  • NewObjectA?
  • GetObjectClass
  • IsInstanceOf?
  • GetMethodID
  • CallObjectMethod?
  • CallObjectMethodV?
  • CallObjectMethodA?
  • CallBooleanMethod?
  • CallBooleanMethodV?
  • CallBooleanMethodA?
  • CallByteMethod?
  • CallByteMethodV?
  • CallByteMethodA?
  • CallCharMethod?
  • CallCharMethodV?
  • CallCharMethodA?
  • CallShortMethod?
  • CallShortMethodV?
  • CallShortMethodA?
  • CallIntMethod
  • CallIntMethodV?
  • CallIntMethodA?
  • CallLongMethod?
  • CallLongMethodV?
  • CallLongMethodA?
  • CallFloatMethod?
  • CallFloatMethodV?
  • CallFloatMethodA?
  • CallDoubleMethod?
  • CallDoubleMethodV?
  • CallDoubleMethodA?
  • CallVoidMethod?
  • CallVoidMethodV?
  • CallVoidMethodA?
  • CallNonvirtualObjectMethod?
  • CallNonvirtualObjectMethodV?
  • CallNonvirtualObjectMethodA?
  • CallNonvirtualBooleanMethod?
  • CallNonvirtualBooleanMethodV?
  • CallNonvirtualBooleanMethodA?
  • CallNonvirtualByteMethod?
  • CallNonvirtualByteMethodV?
  • CallNonvirtualByteMethodA?
  • CallNonvirtualCharMethod?
  • CallNonvirtualCharMethodV?
  • CallNonvirtualCharMethodA?
  • CallNonvirtualShortMethod?
  • CallNonvirtualShortMethodV?
  • CallNonvirtualShortMethodA?
  • CallNonvirtualIntMethod?
  • CallNonvirtualIntMethodV?
  • CallNonvirtualIntMethodA?
  • CallNonvirtualLongMethod?
  • CallNonvirtualLongMethodV?
  • CallNonvirtualLongMethodA?
  • CallNonvirtualFloatMethod?
  • CallNonvirtualFloatMethodV?
  • CallNonvirtualFloatMethodA?
  • CallNonvirtualDoubleMethod?
  • CallNonvirtualDoubleMethodV?
  • CallNonvirtualDoubleMethodA?
  • CallNonvirtualVoidMethod?
  • CallNonvirtualVoidMethodV?
  • CallNonvirtualVoidMethodA?
  • GetFieldID
  • GetObjectField
  • GetBooleanField?
  • GetByteField?
  • GetCharField?
  • GetShortField?
  • GetIntField
  • GetLongField?
  • GetFloatField?
  • GetDoubleField?
  • SetObjectField
  • SetBooleanField
  • SetByteField?
  • SetCharField?
  • SetShortField?
  • SetIntField
  • SetLongField?
  • SetFloatField?
  • SetDoubleField?
  • GetStaticMethodID
  • CallStaticObjectMethod?
  • CallStaticObjectMethodV?
  • CallStaticObjectMethodA?
  • CallStaticBooleanMethod?
  • CallStaticBooleanMethodV?
  • CallStaticBooleanMethodA?
  • CallStaticByteMethod?
  • CallStaticByteMethodV?
  • CallStaticByteMethodA?
  • CallStaticCharMethod?
  • CallStaticCharMethodV?
  • CallStaticCharMethodA?
  • CallStaticShortMethod?
  • CallStaticShortMethodV?
  • CallStaticShortMethodA?
  • CallStaticIntMethod?
  • CallStaticIntMethodV?
  • CallStaticIntMethodA?
  • CallStaticLongMethod?
  • CallStaticLongMethodV?
  • CallStaticLongMethodA?
  • CallStaticFloatMethod?
  • CallStaticFloatMethodV?
  • CallStaticFloatMethodA?
  • CallStaticDoubleMethod?
  • CallStaticDoubleMethodV?
  • CallStaticDoubleMethodA?
  • CallStaticVoidMethod?
  • CallStaticVoidMethodV?
  • CallStaticVoidMethodA?
  • GetStaticFieldID
  • GetStaticObjectField?
  • GetStaticBooleanField?
  • GetStaticByteField?
  • GetStaticCharField?
  • GetStaticShortField?
  • GetStaticIntField?
  • GetStaticLongField?
  • GetStaticFloatField?
  • GetStaticDoubleField?
  • SetStaticObjectField?
  • SetStaticBooleanField?
  • SetStaticByteField?
  • SetStaticCharField?
  • SetStaticShortField?
  • SetStaticIntField?
  • SetStaticLongField?
  • SetStaticFloatField?
  • SetStaticDoubleField?
  • NewString?
  • GetStringLength?
  • GetStringChars?
  • ReleaseStringChars?
  • NewStringUTF
  • GetStringUTFLength?
  • GetStringUTFChars
  • ReleaseStringUTFChars?
  • GetArrayLength?
  • NewObjectArray?
  • GetObjectArrayElement?
  • SetObjectArrayElement?
  • NewBooleanArray?
  • NewByteArray?
  • NewCharArray?
  • NewShortArray?
  • NewIntArray?
  • NewLongArray?
  • NewFloatArray?
  • NewDoubleArray?
  • GetBooleanArrayElements?
  • GetByteArrayElements
  • GetCharArrayElements?
  • GetShortArrayElements?
  • GetIntArrayElements?
  • GetLongArrayElements?
  • GetFloatArrayElements?
  • GetDoubleArrayElements?
  • ReleaseBooleanArrayElements?
  • ReleaseByteArrayElements
  • ReleaseCharArrayElements?
  • ReleaseShortArrayElements?
  • ReleaseIntArrayElements?
  • ReleaseLongArrayElements?
  • ReleaseFloatArrayElements?
  • ReleaseDoubleArrayElements?
  • GetBooleanArrayRegion?
  • GetByteArrayRegion?
  • GetCharArrayRegion?
  • GetShortArrayRegion?
  • GetIntArrayRegion?
  • GetLongArrayRegion?
  • GetFloatArrayRegion?
  • GetDoubleArrayRegion?
  • SetBooleanArrayRegion?
  • SetByteArrayRegion?
  • SetCharArrayRegion?
  • SetShortArrayRegion?
  • SetIntArrayRegion?
  • SetLongArrayRegion?
  • SetFloatArrayRegion?
  • SetDoubleArrayRegion?
  • RegisterNatives?
  • UnregisterNatives?
  • MonitorEnter?
  • MonitorExit?
  • GetJavaVM?
  • GetStringRegion?
  • GetStringUTFRegion?
  • GetPrimitiveArrayCritical?
  • ReleasePrimitiveArrayCritical?
  • GetStringCritical?
  • ReleaseStringCritical?
  • NewWeakGlobalRef?
  • DeleteWeakGlobalRef?
  • ExceptionCheck?
  • NewDirectByteBuffer?
  • GetDirectBufferAddress?
  • GetDirectBufferCapacity?
  • GetObjectRefType?

実装

関連