Platforms to show: All Mac Windows Linux Cross-Platform

Back to JavaObjectMBS class.

JavaObjectMBS.BooleanField(TheField as JavaFieldMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a boolean field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.ByteField(TheField as JavaFieldMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a byte field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.CallBooleanMethod(MethodID as JavaMethodMBS, args as memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a boolean value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallByteMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a byte value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallCharMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a char value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallDoubleMethod(MethodID as JavaMethodMBS, args as memoryblock) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a double value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallFloatMethod(MethodID as JavaMethodMBS, args as memoryblock) as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a float value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallIntMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with an integer value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

Some examples using this method:

JavaObjectMBS.CallLongMethod(MethodID as JavaMethodMBS, args as memoryblock) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a long value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallMethod(MethodID as JavaMethodMBS, args() as Variant) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 19.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method.
Example
Dim vm As JavaVMMBS // your initialized VM

// 1. Find class
Dim jclass As JavaClassMBS =vm.FindClass("stringtest")

if jclass=nil then
msgbox "Can't find stringtest class"
Return
end if

// 2. Call constructor
dim jmethod1 as JavaMethodMBS = jclass.GetMethod("<init>", "()V")

if jmethod1=nil then
msgbox "Can't find constructor"
Return
end if

// 3. Create object
Dim param1() As Variant
dim jobject1 as JavaObjectMBS=jclass.NewObject(jmethod1, param1)

if jobject1=nil then
MsgBox "Constructor failed!?"
Return
end if

// 4. lookup method
Dim jmethod3 As JavaMethodMBS = jclass.GetMethod("setValue","(Ljava/lang/String;)V")
if jmethod3=nil then
MsgBox "Failed to find setValue method."
Return
end if

// 5. Call method
Dim param3() As Variant
param3.append "Hello World"
Call jobject1.CallMethod(jmethod3,param3)

MsgBox "done"

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args variant array that immediately follows the methodID argument.

This is generic version, where our plugin translates between native Xojo data types and Java data types. We support conversion of boolean, byte (integer), char (integer), short (integer), int (integer), long (int64), double, float (single) and Java objects. Objects can be JavaObjectMBS or subclasses including JavaStringMBS and the JavaArrayMBS subclasses. For your convenience you can pass in string and we convert to JavaStringMBS for you.

JavaObjectMBS.CallNonvirtualBooleanMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a boolean value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualByteMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a byte value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualCharMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a char value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualDoubleMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a double value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualFloatMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a float value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualIntMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with an integer value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualLongMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a long value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args() as Variant) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 19.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args variant array that immediately follows the methodID argument.

This is generic version, where our plugin translates between native Xojo data types and Java data types. We support conversion of boolean, byte (integer), char (integer), short (integer), int (integer), long (int64), double, float (single) and Java objects. Objects can be JavaObjectMBS or subclasses including JavaStringMBS and the JavaArrayMBS subclasses. For your convenience you can pass in string and we convert to JavaStringMBS for you.

JavaObjectMBS.CallNonvirtualObjectMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as JavaObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with an object value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualShortMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with a short value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallNonvirtualVoidMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a non virtual method with no return value.

This call invokes an instance (non-static) method on a Java object, according to the specified class and method ID. The methodID argument must be obtained by calling GetMethodID on the class TheClass.

The CallNonvirtualMethod family of routines and the CallMethod family of routines are different. CallMethod routines invoke the method based on the class of the object, while CallNonvirtualMethod routines invoke the method based on the class, designated by the TheClass parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallObjectMethod(MethodID as JavaMethodMBS, args as memoryblock) as JavaObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with an object value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallShortMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with a short value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

JavaObjectMBS.CallVoidMethod(MethodID as JavaMethodMBS, args as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Calls a virtual method with no return value.

This family of operations invokes an instance (non-static) method on a Java object, according to the specified method ID. The methodID argument must be obtained by calling GetMethodID.

When this function is used to call private methods and constructors, the method ID must be derived from the real class of obj, not from one of its super classes.

Programmers place all arguments to the method in an args memoryblock that immediately follows the methodID argument.
In the memoryblock you need to use 8 bytes per argument and align them correctly. (alignment depends on platform)

Some examples using this method:

JavaObjectMBS.CharField(TheField as JavaFieldMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a char field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The private constructor.

JavaObjectMBS.DoubleField(TheField as JavaFieldMBS) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a double field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.Field(TheField as JavaFieldMBS) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 19.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a field in this class.

This is generic version, where our plugin translates between native Xojo data types and Java data types. We support conversion of boolean, byte (integer), char (integer), short (integer), int (integer), long (int64), double, float (single) and Java objects. Objects can be JavaObjectMBS or subclasses including JavaStringMBS and the JavaArrayMBS subclasses. For your convenience you can pass in string and we convert to JavaStringMBS for you.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.FloatField(TheField as JavaFieldMBS) as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a single field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.GetDirectBufferAddress(directbuffer as JavaObjectMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the address of the memory from a directbuffer object.

Returns 0 on any error.

JavaObjectMBS.GetDirectBufferCapacity(directbuffer as JavaObjectMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the size of the memory from a directbuffer object.

Returns 0 on any error.

JavaObjectMBS.IntField(TheField as JavaFieldMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for an integer field in this class.

Do not use for static fields!
(Read and Write computed property)

Some examples using this property:

JavaObjectMBS.IsInstanceOf(TheClass as JavaClassMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Tests whether an object is an instance of a class.

Returns true if obj can be cast to TheClass; otherwise, returns false. A nil object can be cast to any class.

JavaObjectMBS.IsSameObject(obj as JavaObjectMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Tests whether two references refer to the same Java object.

Returns true if ref1 and ref2 refer to the same Java object, or are both nil; otherwise, returns false.

False on any error.

JavaObjectMBS.LongField(TheField as JavaFieldMBS) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a long field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.ObjectClass as JavaClassMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the class of an object.

Returns nil on any error.

JavaObjectMBS.ObjectField(TheField as JavaFieldMBS) as JavaObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for an object field in this class.

Do not use for static fields!
(Read and Write computed property)

JavaObjectMBS.ShortField(TheField as JavaFieldMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Get or set the value for a short field in this class.

Do not use for static fields!
(Read and Write computed property)

The items on this page are in the following plugins: MBS Java Plugin.


The biggest plugin in space...