record TJavaEnv

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TJavaEnv = record

Description

 

Overview

Fields

env: PJNIEnv;

Methods

function getclass(n: pchar): jclass;
function getmethod(c: jclass; n, sig: pchar): jmethodID;
function getmethod(classname: pchar; n, sig: pchar): jmethodID;
function getfield(c: jclass; n, sig: pchar): jfieldID;
function getfield(classname: pchar; n, sig: pchar): jfieldID;
function getstaticmethod(c: jclass; n, sig: pchar): jmethodID;
function getstaticmethod(classname: pchar; n, sig: pchar): jmethodID;
function getstaticfield(c: jclass; n, sig: pchar): jfieldID;
function getstaticfield(classname: pchar; n, sig: pchar): jfieldID;
function getObjectField(obj: jobject; id: jfieldID): jobject;
function getStringField(obj: jobject; id: jfieldID): string;
function getIntField(obj: jobject; id: jfieldID): jint;
function getLongField(obj: jobject; id: jfieldID): jlong;
function getBooleanField(obj: jobject; id: jfieldID): boolean;
procedure callVoidMethod(obj: jobject; methodID: jmethodID); inline;
procedure callVoidMethod(obj: jobject; methodID: jmethodID; args: Pjvalue); inline;
function callObjectMethod(obj: jobject; methodID: jmethodID): jobject; inline;
function callObjectMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): jobject; inline;
function callBooleanMethod(obj: jobject; methodID: jmethodID): boolean; inline;
function callBooleanMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): boolean; inline;
function callIntMethod(obj: jobject; methodID: jmethodID): jint; inline;
function callIntMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): jint; inline;
function callStringMethod(obj: jobject; methodID: jmethodID): string; inline;
function callStringMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): string; inline;
procedure callVoidMethodChecked(obj: jobject; methodID: jmethodID); inline;
procedure callVoidMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue); inline;
function callObjectMethodChecked(obj: jobject; methodID: jmethodID): jobject; inline;
function callObjectMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): jobject; inline;
function callBooleanMethodChecked(obj: jobject; methodID: jmethodID): boolean; inline;
function callBooleanMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): boolean; inline;
function callIntMethodChecked(obj: jobject; methodID: jmethodID): jint; inline;
function callIntMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): jint; inline;
function callStringMethodChecked(obj: jobject; methodID: jmethodID): string; inline;
function callStringMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): string; inline;
procedure callStaticVoidMethod(obj: jobject; methodID: jmethodID); inline;
procedure callStaticVoidMethod(obj: jobject; methodID: jmethodID; args: Pjvalue); inline;
function callStaticObjMethod(obj: jobject; methodID: jmethodID): jobject; inline;
function callStaticObjMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): jobject; inline;
procedure SetObjectField(Obj:JObject;FieldID:JFieldID;Val:JObject); inline;
procedure SetStringField(Obj:JObject;FieldID:JFieldID;Val:string); inline;
procedure SetIntField(Obj:JObject;FieldID:JFieldID; i: jint); inline;
procedure SetLongField(Obj:JObject;FieldID:JFieldID; i: jlong); inline;
procedure SetBooleanField(Obj:JObject;FieldID:JFieldID; b: Boolean); inline;
procedure setObjectArrayElement(a: jobject; index: integer; v: jobject); inline;
function getObjectArrayElement(a: jobject; index: integer): jobject; inline;
procedure setStringArrayElement(a: jobject; index: integer; v: string); inline;
function getStringArrayElement(a: jobject; index: integer): string; inline;
function getIntArray(a: jobject): TLongintArray; inline;
function getArrayLength(a: jobject): jint; inline;
function newObject(c: jclass; m: jmethodID): jobject;
function newObject(c: jclass; m: jmethodID; args: Pjvalue): jobject;
function newObjectArray(len: integer; c: jclass; def: jobject): jobject;
function newGlobalRefAndDelete(obj: jobject): jobject;
procedure deleteLocalRef(obj: jobject); inline;
procedure deleteGlobalRef(obj: jobject);
function NewStringUTF(s: string): jobject; inline;
function stringToJString(s: string; conversionMode: TStringConversionMode = scmConvertAndRepairUTF8ToMUTF8): jobject;
function jStringToString(s: jobject): string;
function jStringToStringAndDelete(s: jobject): string;
function arrayToJArray(a: array of string; stringClass: jclass = nil): jobject;
procedure RethrowJavaExceptionIfThereIsOne(aExceptionClass: ExceptClass);
procedure RethrowJavaExceptionIfThereIsOne();
function ExceptionDescribeAndClear: string;
function ExceptionCheck: boolean;
procedure ThrowNew(c: jclass; error: string);
procedure ThrowNew(c: pchar; error: string);
function inputStreamToStringAndDelete(stream: jobject; jmInputStreamRead, jmInputStreamClose: jmethodID): string;
function inputStreamToStringAndDelete(stream: jobject): string;
procedure inputStreamReadAllAndDelete(stream: jobject; readCallback: TStreamLikeWrite; jmInputStreamRead, jmInputStreamClose: jmethodID);
procedure inputStreamReadAllAndDelete(stream: jobject; readCallback: TStreamLikeWrite);
function getMapProperty(map: jobject; value: jobject): jobject;
function commonClasses_String: jclass;
function commonClasses_InputStream: jclass;
function commonMethods_InputStream_Read_B(inputStream: jclass = nil): jmethodID;
function commonMethods_InputStream_Close(inputStream: jclass = nil): jmethodID;

Description

Fields

env: PJNIEnv;
 

Methods

function getclass(n: pchar): jclass;
 
function getmethod(c: jclass; n, sig: pchar): jmethodID;
 
function getmethod(classname: pchar; n, sig: pchar): jmethodID;
 
function getfield(c: jclass; n, sig: pchar): jfieldID;
 
function getfield(classname: pchar; n, sig: pchar): jfieldID;
 
function getstaticmethod(c: jclass; n, sig: pchar): jmethodID;
 
function getstaticmethod(classname: pchar; n, sig: pchar): jmethodID;
 
function getstaticfield(c: jclass; n, sig: pchar): jfieldID;
 
function getstaticfield(classname: pchar; n, sig: pchar): jfieldID;
 
function getObjectField(obj: jobject; id: jfieldID): jobject;
 
function getStringField(obj: jobject; id: jfieldID): string;
 
function getIntField(obj: jobject; id: jfieldID): jint;
 
function getLongField(obj: jobject; id: jfieldID): jlong;
 
function getBooleanField(obj: jobject; id: jfieldID): boolean;
 
procedure callVoidMethod(obj: jobject; methodID: jmethodID); inline;
 
procedure callVoidMethod(obj: jobject; methodID: jmethodID; args: Pjvalue); inline;
 
function callObjectMethod(obj: jobject; methodID: jmethodID): jobject; inline;
 
function callObjectMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): jobject; inline;
 
function callBooleanMethod(obj: jobject; methodID: jmethodID): boolean; inline;
 
function callBooleanMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): boolean; inline;
 
function callIntMethod(obj: jobject; methodID: jmethodID): jint; inline;
 
function callIntMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): jint; inline;
 
function callStringMethod(obj: jobject; methodID: jmethodID): string; inline;
 
function callStringMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): string; inline;
 
procedure callVoidMethodChecked(obj: jobject; methodID: jmethodID); inline;
 
procedure callVoidMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue); inline;
 
function callObjectMethodChecked(obj: jobject; methodID: jmethodID): jobject; inline;
 
function callObjectMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): jobject; inline;
 
function callBooleanMethodChecked(obj: jobject; methodID: jmethodID): boolean; inline;
 
function callBooleanMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): boolean; inline;
 
function callIntMethodChecked(obj: jobject; methodID: jmethodID): jint; inline;
 
function callIntMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): jint; inline;
 
function callStringMethodChecked(obj: jobject; methodID: jmethodID): string; inline;
 
function callStringMethodChecked(obj: jobject; methodID: jmethodID; args: Pjvalue): string; inline;
 
procedure callStaticVoidMethod(obj: jobject; methodID: jmethodID); inline;
 
procedure callStaticVoidMethod(obj: jobject; methodID: jmethodID; args: Pjvalue); inline;
 
function callStaticObjMethod(obj: jobject; methodID: jmethodID): jobject; inline;
 
function callStaticObjMethod(obj: jobject; methodID: jmethodID; args: Pjvalue): jobject; inline;
 
procedure SetObjectField(Obj:JObject;FieldID:JFieldID;Val:JObject); inline;
 
procedure SetStringField(Obj:JObject;FieldID:JFieldID;Val:string); inline;
 
procedure SetIntField(Obj:JObject;FieldID:JFieldID; i: jint); inline;
 
procedure SetLongField(Obj:JObject;FieldID:JFieldID; i: jlong); inline;
 
procedure SetBooleanField(Obj:JObject;FieldID:JFieldID; b: Boolean); inline;
 
procedure setObjectArrayElement(a: jobject; index: integer; v: jobject); inline;
 
function getObjectArrayElement(a: jobject; index: integer): jobject; inline;
 
procedure setStringArrayElement(a: jobject; index: integer; v: string); inline;
 
function getStringArrayElement(a: jobject; index: integer): string; inline;
 
function getIntArray(a: jobject): TLongintArray; inline;
 
function getArrayLength(a: jobject): jint; inline;
 
function newObject(c: jclass; m: jmethodID): jobject;
 
function newObject(c: jclass; m: jmethodID; args: Pjvalue): jobject;
 
function newObjectArray(len: integer; c: jclass; def: jobject): jobject;
 
function newGlobalRefAndDelete(obj: jobject): jobject;
 
procedure deleteLocalRef(obj: jobject); inline;
 
procedure deleteGlobalRef(obj: jobject);
 
function NewStringUTF(s: string): jobject; inline;
 
function stringToJString(s: string; conversionMode: TStringConversionMode = scmConvertAndRepairUTF8ToMUTF8): jobject;
 
function jStringToString(s: jobject): string;
 
function jStringToStringAndDelete(s: jobject): string;
 
function arrayToJArray(a: array of string; stringClass: jclass = nil): jobject;
 
procedure RethrowJavaExceptionIfThereIsOne(aExceptionClass: ExceptClass);
 
procedure RethrowJavaExceptionIfThereIsOne();
 
function ExceptionDescribeAndClear: string;
 
function ExceptionCheck: boolean;
 
procedure ThrowNew(c: jclass; error: string);
 
procedure ThrowNew(c: pchar; error: string);
 
function inputStreamToStringAndDelete(stream: jobject; jmInputStreamRead, jmInputStreamClose: jmethodID): string;
 
function inputStreamToStringAndDelete(stream: jobject): string;
 
procedure inputStreamReadAllAndDelete(stream: jobject; readCallback: TStreamLikeWrite; jmInputStreamRead, jmInputStreamClose: jmethodID);
 
procedure inputStreamReadAllAndDelete(stream: jobject; readCallback: TStreamLikeWrite);
 
function getMapProperty(map: jobject; value: jobject): jobject;
 
function commonClasses_String: jclass;
 
function commonClasses_InputStream: jclass;
 
function commonMethods_InputStream_Read_B(inputStream: jclass = nil): jmethodID;
 
function commonMethods_InputStream_Close(inputStream: jclass = nil): jmethodID;
 

Generated by PasDoc 0.14.0.