|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.jenie.Callback
public abstract class Callback
Represents a callback function.
Callbacks can only be passed or returned by functions and callbacks as a pointer to the callback.
| Field Summary | |
|---|---|
static int |
CDECL
The caller cleans the stack. |
static int |
CREATE_NEW_THREAD
Create new thread to process callback. |
static int |
DEFAULT_PROCESSING
Default callback processing. |
static int |
STDCALL
The callee cleans the stack. |
static int |
USING_ATTACHED_THREAD
The callback is using a native thread that has been attached to a Java thread. |
static int |
USING_DETACHED_THREAD
The callback is using a native thread that has not been attached to a Java thread. |
| Constructor Summary | |
|---|---|
Callback()
Constructs a new callback function. |
|
Callback(NativeParameter[] parameters)
Constructs a new callback function with the specified parameters. |
|
Callback(NativeParameter[] parameters,
NativeParameter return_value)
Constructs a new callback function with the specified parameters and return value. |
|
Callback(NativeParameter[] parameters,
NativeParameter return_value,
int calling_convention)
Constructs a new callback function with the specified parameters, return value and calling convention. |
|
| Method Summary | |
|---|---|
abstract void |
callback()
Called when callback. |
void |
free()
Used to free this callback. |
int |
getCallbackHandling()
Returns how callbacks are handled. |
int |
getCallingConvention()
Returns the calling convention. |
long |
getNativeAddress()
Returns the native address of this callback. |
NativeParameter[] |
getParameters()
Returns any parameters. |
NativeParameter |
getReturnValue()
Returns any return value. |
void |
setCallbackHandling(int callback_handling)
Sets how callback are handled. |
void |
setCallingConvention(int calling_convention)
Used to set the calling convention. |
void |
setParameters(NativeParameter[] parameters)
Used to set the parameters. |
void |
setReturnValue(NativeParameter return_value)
Used to set the return value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STDCALL
This is the default calling convention for Win32 API callbacks.
public static final int CDECL
This is the default calling convention for C callbacks.
This enables calling callbacks with variable number or parameters.
public static final int DEFAULT_PROCESSING
public static final int CREATE_NEW_THREAD
public static final int USING_ATTACHED_THREAD
public static final int USING_DETACHED_THREAD
| Constructor Detail |
|---|
public Callback()
Uses the default calling convention.
public Callback(NativeParameter[] parameters)
Uses the default calling convention.
parameters - any parameters to use. null for none.
public Callback(NativeParameter[] parameters,
NativeParameter return_value)
Uses the default calling convention.
parameters - any parameters to use. null for none.return_value - any return code. null for none.
public Callback(NativeParameter[] parameters,
NativeParameter return_value,
int calling_convention)
throws java.lang.IllegalArgumentException
parameters - any parameters to use. null for none.return_value - any return code. null for none.calling_convention - the calling convention. -1 for the default calling convention.
java.lang.IllegalArgumentException - if the calling convention specified is not valid.| Method Detail |
|---|
public void setParameters(NativeParameter[] parameters)
parameters - any parameters to use. null for none.public void setReturnValue(NativeParameter return_value)
return_value - any return value to use. null for none.
public void setCallingConvention(int calling_convention)
throws java.lang.IllegalArgumentException
calling_convention - the calling convention. -1 for the default calling convention.
java.lang.IllegalArgumentException - if the calling convention specified is not valid.public void setCallbackHandling(int callback_handling)
Used when using Java 1.1.x.
public NativeParameter[] getParameters()
public NativeParameter getReturnValue()
public int getCallingConvention()
public int getCallbackHandling()
public long getNativeAddress()
public abstract void callback()
public void free()
|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2004-2005 Servertec. All rights reserved.