Język

JValue Struct

Definition

Represents a JNI jvalue union, used to pass arguments to Java methods via JNI function calls.

public struct JValue
type JValue = struct
Inheritance
JValue

Remarks

Each constructor corresponds to one of the JNI primitive types or an object reference. See the JNI Type Specification.

Constructors

Name Description
JValue(Boolean)

Creates a JValue from a Boolean value, corresponding to the JNI jboolean type.

JValue(Char)

Creates a JValue from a Char value, corresponding to the JNI jchar type.

JValue(Double)

Creates a JValue from a Double value, corresponding to the JNI jdouble type.

JValue(IJavaObject)

Creates a JValue from an IJavaObject instance, corresponding to a JNI jobject reference.

JValue(Int16)

Creates a JValue from a Int16 value, corresponding to the JNI jshort type.

JValue(Int32)

Creates a JValue from an Int32 value, corresponding to the JNI jint type.

JValue(Int64)

Creates a JValue from a Int64 value, corresponding to the JNI jlong type.

JValue(IntPtr)

Creates a JValue from an IntPtr value, corresponding to a JNI jobject reference.

JValue(SByte)

Creates a JValue from an SByte value, corresponding to the JNI jbyte type.

JValue(Single)

Creates a JValue from a Single value, corresponding to the JNI jfloat type.

Fields

Name Description
Zero

A JValue representing a JNI NULL object reference.

Applies to