java.lang.Object | +--com.neva.JCallback
The JCallback class provides a mechanism for external functions to call into Java
| Field Summary | |
static int |
CC_cdecl
Specifies __cdecl calling convention |
static int |
CC_stdcall
Specifies __stdcall calling convention |
| Method Summary | |
int |
asWin32Callback()
Builds a callable wrapper around Java method and answers its address. |
java.lang.Object |
getPrivateData()
Gets an object previously stored by setPrivateData() |
java.lang.Object |
getThis()
Gets an object previously stored by setThis() |
void |
release()
Releases the memory occupied by the callable wrapper |
void |
setCallback(java.lang.String method,
int argc)
Defines callback properties. |
void |
setCallback(java.lang.String method,
int argc,
int cc)
Defines callback properties |
void |
setPrivateData(java.lang.Object obj)
Sets an arbitrary object that can be accessed from within the callback method |
void |
setThis(java.lang.Object _this)
Sets an arbitrary object that can be accessed from within the callback method |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int CC_cdecl
public static int CC_stdcall
| Method Detail |
public final int asWin32Callback()
throws java.lang.NoSuchMethodError
java.lang.NoSuchMethodErrorpublic final java.lang.Object getPrivateData()
public final java.lang.Object getThis()
public final void release()
public final void setCallback(java.lang.String method,
int argc)
method - specifies the name of the method. The method must be implemented by this objectargc - specifies the number of 32-bit integer arguments
public final void setCallback(java.lang.String method,
int argc,
int cc)
method - specifies the name of the method. The method must be implemented by this objectargc - specifies the number of 32-bit integer argumentscc - specifies the calling conventionpublic final void setPrivateData(java.lang.Object obj)
public final void setThis(java.lang.Object _this)