de.intarsys.nativec.jna
Class JnaNativeFunction

java.lang.Object
  extended by de.intarsys.nativec.jna.JnaNativeFunction
All Implemented Interfaces:
INativeFunction

public class JnaNativeFunction
extends java.lang.Object
implements INativeFunction


Constructor Summary
JnaNativeFunction(com.sun.jna.Function function)
           
 
Method Summary
protected  com.sun.jna.Function getFunction()
           
<T> T
invoke(java.lang.Class<T> returnType, java.lang.Object... objects)
          Invoke the native function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JnaNativeFunction

public JnaNativeFunction(com.sun.jna.Function function)
Method Detail

getFunction

protected com.sun.jna.Function getFunction()

invoke

public <T> T invoke(java.lang.Class<T> returnType,
                    java.lang.Object... objects)
Description copied from interface: INativeFunction
Invoke the native function.

Specified by:
invoke in interface INativeFunction
Parameters:
returnType - The expected return type.
objects - The arguments to the function
Returns:
The result of executing the function