JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Public Member Functions | Properties | List of all members
Codemesh.JuggerNET.JavaMethod Class Reference

The framework type wrapping around a Java method. More...

Public Member Functions

 JavaMethod (JavaClass declarator, Type type, string name, string sig, bool bStatic)
 
 JavaMethod (JavaClass declarator, Type type, string name, string sig, bool bStatic, bool bNonVirtual)
 
 JavaMethod (JavaClass declarator, Type type, string name, string sig, bool bStatic, bool bNonVirtual, bool bIndirect)
 
jvalue call (long inst, params jvalue[] param)
 
bool call_bool (long inst, params jvalue[] param)
 
byte call_byte (long inst, params jvalue[] param)
 
char call_char (long inst, params jvalue[] param)
 
double call_double (long inst, params jvalue[] param)
 
float call_float (long inst, params jvalue[] param)
 
int call_int (long inst, params jvalue[] param)
 
long call_long (long inst, params jvalue[] param)
 
short call_short (long inst, params jvalue[] param)
 
object call_object (long inst, params jvalue[] param)
 
void call_void (long inst, params jvalue[] param)
 
long constructRefArray (JavaClass type, params jvalue[] param)
 
long construct (params jvalue[] param)
 
long construct (int dummy, params GenericCallback[] d)
 
unsafe void CallVoid (JavaProxy jpo)
 Calls a Java method of signature ()V. More...
 
unsafe void CallVoid (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of void. More...
 
unsafe void CallVoid (JavaProxy jpo, bool val)
 Calls a Java method of signature (Z)V (a boolean setter). More...
 
unsafe void CallVoid (JavaProxy jpo, byte val)
 Calls a Java method of signature (B)V (a byte setter). More...
 
unsafe void CallVoid (JavaProxy jpo, char val)
 Calls a Java method of signature (C)V (a char setter). More...
 
unsafe void CallVoid (JavaProxy jpo, double val)
 Calls a Java method of signature (D)V (a double setter). More...
 
unsafe void CallVoid (JavaProxy jpo, float val)
 Calls a Java method of signature (F)V (a float setter). More...
 
unsafe void CallVoid (JavaProxy jpo, int val)
 Calls a Java method of signature (I)V (an int setter). More...
 
unsafe void CallVoid (JavaProxy jpo, long val)
 Calls a Java method of signature (J)V (a long setter). More...
 
unsafe void CallVoid (JavaProxy jpo, short val)
 Calls a Java method of signature (S)V (a short setter). More...
 
unsafe void CallVoid (JavaProxy jpo, object val)
 Calls a Java method of signature (Lxxx;)V (a reference type setter). More...
 
unsafe void CallVoid (JavaProxy jpo, object val, Type type)
 Calls a Java method of signature (Lxxx;)V (a reference type setter). More...
 
unsafe bool CallBool (JavaProxy jpo)
 Calls a Java method of signature ()Z (a bool getter). More...
 
unsafe bool CallBool (JavaProxy jpo, bool b)
 Calls a Java method of signature (Z)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, byte b)
 Calls a Java method of signature (B)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, char c)
 Calls a Java method of signature (C)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, double d)
 Calls a Java method of signature (D)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, float f)
 Calls a Java method of signature (F)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, int i)
 Calls a Java method of signature (I)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, long l)
 Calls a Java method of signature (J)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, short s)
 Calls a Java method of signature (S)Z. More...
 
unsafe bool CallBool (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of bool. More...
 
unsafe byte CallByte (JavaProxy jpo)
 Calls a Java method of signature ()B (a byte getter). More...
 
unsafe byte CallByte (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of byte. More...
 
unsafe char CallChar (JavaProxy jpo)
 Calls a Java method of signature ()C (a char getter). More...
 
unsafe char CallChar (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of char. More...
 
unsafe double CallDouble (JavaProxy jpo)
 Calls a Java method of signature ()D (a double getter). More...
 
unsafe double CallDouble (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of double. More...
 
unsafe float CallFloat (JavaProxy jpo)
 Calls a Java method of signature ()F (a float getter). More...
 
unsafe float CallFloat (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of float. More...
 
unsafe int CallInt (JavaProxy jpo)
 Calls a Java method of signature ()I (an int getter). More...
 
unsafe int CallInt (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of int. More...
 
unsafe long CallLong (JavaProxy jpo)
 Calls a Java method of signature ()J (a long getter). More...
 
unsafe long CallLong (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of long. More...
 
unsafe short CallShort (JavaProxy jpo)
 Calls a Java method of signature ()S (a short getter). More...
 
unsafe short CallShort (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of short. More...
 
unsafe IntPtr CallObject (JavaProxy jpo)
 Calls a Java method of signature ()Lxxx; (a reference type getter). More...
 
unsafe IntPtr CallObject (JavaProxy jpo, object arg)
 
object CallObject (JavaProxy jpo, Type declaredType, bool bLeaf)
 
object CallObject (JavaProxy jpo, Type declaredType, bool bLeaf, object arg)
 
unsafe string CallString (JavaProxy jpo)
 Calls a Java method of signature ()Ljava/lang/String;. More...
 
unsafe IntPtr CallObject (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of a reference type. More...
 
object CallObject (JavaProxy jpo, Type declaredType, bool bLeaf, JavaMethodArguments jargs)
 
unsafe string CallString (JavaProxy jpo, JavaMethodArguments args)
 Calls a Java method with a variable number of arguments and a return type of string. More...
 

Properties

long MethodID [get]
 
HandleRef Handle [get]
 
string Name [get]
 
string Signature [get]
 
Type NativeType [get]
 
bool IsStatic [get]
 
bool IsLeafType [get]
 
string? FriendlyName [get]
 

Detailed Description

The framework type wrapping around a Java method.

<exclude>

Member Function Documentation

◆ call_object()

object Codemesh.JuggerNET.JavaMethod.call_object ( long  inst,
params jvalue[]  param 
)
inline

theType.IsInterface && lastReturnedType != null ? lastReturnedType : theType;

References Codemesh.JuggerNET.JavaClass.GetTypedInstance().

◆ CallBool() [1/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo)
inline

Calls a Java method of signature ()Z (a bool getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

Referenced by Codemesh.JuggerNET.JuggerNETProxyObject.Equals().

◆ CallBool() [2/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
bool  b 
)
inline

Calls a Java method of signature (Z)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [3/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
byte  b 
)
inline

Calls a Java method of signature (B)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [4/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
char  c 
)
inline

Calls a Java method of signature (C)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [5/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
double  d 
)
inline

Calls a Java method of signature (D)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [6/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
float  f 
)
inline

Calls a Java method of signature (F)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [7/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
int  i 
)
inline

Calls a Java method of signature (I)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [8/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of bool.

Parameters
jpoThe instance handle or null.
jpoThe method arguments that are to be passed to the Java method.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [9/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
long  l 
)
inline

Calls a Java method of signature (J)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallBool() [10/10]

unsafe bool Codemesh.JuggerNET.JavaMethod.CallBool ( JavaProxy  jpo,
short  s 
)
inline

Calls a Java method of signature (S)Z.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallByte() [1/2]

unsafe byte Codemesh.JuggerNET.JavaMethod.CallByte ( JavaProxy  jpo)
inline

Calls a Java method of signature ()B (a byte getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallByte() [2/2]

unsafe byte Codemesh.JuggerNET.JavaMethod.CallByte ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of byte.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallChar() [1/2]

unsafe char Codemesh.JuggerNET.JavaMethod.CallChar ( JavaProxy  jpo)
inline

Calls a Java method of signature ()C (a char getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallChar() [2/2]

unsafe char Codemesh.JuggerNET.JavaMethod.CallChar ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of char.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallDouble() [1/2]

unsafe double Codemesh.JuggerNET.JavaMethod.CallDouble ( JavaProxy  jpo)
inline

Calls a Java method of signature ()D (a double getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallDouble() [2/2]

unsafe double Codemesh.JuggerNET.JavaMethod.CallDouble ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of double.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallFloat() [1/2]

unsafe float Codemesh.JuggerNET.JavaMethod.CallFloat ( JavaProxy  jpo)
inline

Calls a Java method of signature ()F (a float getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallFloat() [2/2]

unsafe float Codemesh.JuggerNET.JavaMethod.CallFloat ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of float.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallInt() [1/2]

unsafe int Codemesh.JuggerNET.JavaMethod.CallInt ( JavaProxy  jpo)
inline

Calls a Java method of signature ()I (an int getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

Referenced by Codemesh.JuggerNET.JuggerNETProxyObject.GetHashCode().

◆ CallInt() [2/2]

unsafe int Codemesh.JuggerNET.JavaMethod.CallInt ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of int.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallLong() [1/2]

unsafe long Codemesh.JuggerNET.JavaMethod.CallLong ( JavaProxy  jpo)
inline

Calls a Java method of signature ()J (a long getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallLong() [2/2]

unsafe long Codemesh.JuggerNET.JavaMethod.CallLong ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of long.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallObject() [1/2]

unsafe IntPtr Codemesh.JuggerNET.JavaMethod.CallObject ( JavaProxy  jpo)
inline

Calls a Java method of signature ()Lxxx; (a reference type getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallObject() [2/2]

unsafe IntPtr Codemesh.JuggerNET.JavaMethod.CallObject ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of a reference type.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.JObject.

◆ CallShort() [1/2]

unsafe short Codemesh.JuggerNET.JavaMethod.CallShort ( JavaProxy  jpo)
inline

Calls a Java method of signature ()S (a short getter).

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallShort() [2/2]

unsafe short Codemesh.JuggerNET.JavaMethod.CallShort ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of short.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallString() [1/2]

unsafe string Codemesh.JuggerNET.JavaMethod.CallString ( JavaProxy  jpo)
inline

Calls a Java method of signature ()Ljava/lang/String;.

Parameters
jpoThe instance handle or null.
Returns
the result from the Java method invocation.

References Codemesh.JuggerNET.JavaProxy.Handle.

Referenced by Codemesh.JuggerNET.JuggerNETProxyObject.ToString().

◆ CallString() [2/2]

unsafe string Codemesh.JuggerNET.JavaMethod.CallString ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of string.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [1/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo)
inline

Calls a Java method of signature ()V.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [2/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
bool  val 
)
inline

Calls a Java method of signature (Z)V (a boolean setter).

Parameters
jpoThe instance handle or null.
valThe boolean argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [3/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
byte  val 
)
inline

Calls a Java method of signature (B)V (a byte setter).

Parameters
jpoThe instance handle or null.
valThe byte argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [4/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
char  val 
)
inline

Calls a Java method of signature (C)V (a char setter).

Parameters
jpoThe instance handle or null.
valThe char argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [5/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
double  val 
)
inline

Calls a Java method of signature (D)V (a double setter).

Parameters
jpoThe instance handle or null.
valThe double argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [6/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
float  val 
)
inline

Calls a Java method of signature (F)V (a float setter).

Parameters
jpoThe instance handle or null.
valThe float argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [7/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
int  val 
)
inline

Calls a Java method of signature (I)V (an int setter).

Parameters
jpoThe instance handle or null.
valThe int argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [8/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
JavaMethodArguments  args 
)
inline

Calls a Java method with a variable number of arguments and a return type of void.

Parameters
jpoThe instance handle or null.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [9/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
long  val 
)
inline

Calls a Java method of signature (J)V (a long setter).

Parameters
jpoThe instance handle or null.
valThe long argument.

References Codemesh.JuggerNET.JavaProxy.Handle.

◆ CallVoid() [10/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
object  val 
)
inline

Calls a Java method of signature (Lxxx;)V (a reference type setter).

Parameters
jpoThe instance handle or null.
valThe reference type argument.

References Codemesh.JuggerNET.JavaProxy.Handle, and Codemesh.JuggerNET.JavaProxy.Release().

◆ CallVoid() [11/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
object  val,
Type  type 
)
inline

Calls a Java method of signature (Lxxx;)V (a reference type setter).

Parameters
jpoThe instance handle or null.
valThe reference type argument.

References Codemesh.JuggerNET.JavaProxy.Handle, and Codemesh.JuggerNET.JavaProxy.Release().

◆ CallVoid() [12/12]

unsafe void Codemesh.JuggerNET.JavaMethod.CallVoid ( JavaProxy  jpo,
short  val 
)
inline

Calls a Java method of signature (S)V (a short setter).

Parameters
jpoThe instance handle or null.
valThe short argument.

References Codemesh.JuggerNET.JavaProxy.Handle.


The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.