|
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.Function
public class Function
Represents a reference to a native function.
| Field Summary | |
|---|---|
static int |
CDECL
The caller cleans the stack. |
static int |
STDCALL
The callee cleans the stack. |
| Constructor Summary | |
|---|---|
Function(Dll dll,
java.lang.String name)
Constructs a new reference to a native function. |
|
Function(Dll dll,
java.lang.String name,
int calling_convention)
Constructs a new reference to a native function. |
|
Function(long pointer)
Constructs a new reference to a native function. |
|
| Method Summary | |
|---|---|
void |
call()
Calls this native function. |
void |
call(NativeParameter[] parameters)
Calls this native function with the specified parameters. |
void |
call(NativeParameter[] parameters,
NativeParameter return_code)
Calls this native function with the specified parameters and return code. |
void |
call(NativeParameter parameter,
NativeParameter return_code)
Calls this native function with the specified parameter and return code. |
void |
call(NativeParameter parameter1,
NativeParameter parameter2,
NativeParameter return_code)
Calls this native function with the specified parameters and return code. |
void |
call(NativeParameter parameter1,
NativeParameter parameter2,
NativeParameter parameter3,
NativeParameter return_code)
Calls this native function with the specified parameters and return code. |
boolean |
equals(java.lang.Object object)
Returns whether this native function equals the specified native function. |
int |
getCallingConvention()
Returns the calling convention. |
long |
getNativeAddress()
Returns the native address of this function. |
int |
hashCode()
Returns the hash code of this native function. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STDCALL
This is the default calling convention for Win32 API functions.
public static final int CDECL
This is the default calling convention for C functions.
This enables calling native functions with variable number or parameters.
| Constructor Detail |
|---|
public Function(Dll dll,
java.lang.String name)
throws NativeException
dll - the dll to use.name - the name of the function.
NativeException - if any exception occurs.public Function(long pointer)
pointer - the pointer to the native function.
public Function(Dll dll,
java.lang.String name,
int calling_convention)
throws NativeException,
java.lang.IllegalArgumentException
dll - the dll to use.name - the name of the function.calling_convention - the calling convention. -1 for the default calling convention.
NativeException - if any exception occurs.
java.lang.IllegalArgumentException| Method Detail |
|---|
public void call(NativeParameter[] parameters,
NativeParameter return_code)
throws NativeException
parameters - any parameters to use. null for none.return_code - any return code to use. null for none.
NativeException - if any exception occurs.
public void call(NativeParameter[] parameters)
throws NativeException
parameters - any parameters to use. null for none.
NativeException - if any exception occurs.
public void call(NativeParameter parameter,
NativeParameter return_code)
throws NativeException
parameter - the first parameter to use. null for none.return_code - the return code. null for none.
NativeException - if any exception occurs.
public void call(NativeParameter parameter1,
NativeParameter parameter2,
NativeParameter return_code)
throws NativeException
parameter1 - the first parameter to use. null for none.parameter2 - the second parameter to use. null for none.return_code - the return code. null for none.
NativeException - if any exception occurs.
public void call(NativeParameter parameter1,
NativeParameter parameter2,
NativeParameter parameter3,
NativeParameter return_code)
throws NativeException
parameter1 - the first parameter to use. null for none.parameter2 - the second parameter to use. null for none.parameter3 - the second parameter to use. null for none.return_code - the return code. null for none.
NativeException - if any exception occurs.
public void call()
throws NativeException
NativeException - if any exception occurs.public long getNativeAddress()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the native function to compare against.
public int hashCode()
hashCode in class java.lang.Objectpublic int getCallingConvention()
|
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.