public abstract class Method
extends com.jniwrapper.Callback
| Modifier | Constructor and Description |
|---|---|
protected |
Method(CClass cclass)
Constructs a method instance.
|
|
Method(CClass cclass,
Sel sel,
com.jniwrapper.Parameter[] params,
com.jniwrapper.Parameter retVal)
Constructs a method instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Id |
getId() |
protected Sel |
getSel() |
protected void |
init(Sel sel,
com.jniwrapper.Parameter[] params,
com.jniwrapper.Parameter retVal)
Initializes method parameters.
|
protected void |
invokeOriginal(com.jniwrapper.Parameter returnValue,
com.jniwrapper.Parameter[] parameters)
Invokes the original class method with the passed parameters.
|
void |
register()
Override method implementation
|
void |
unregister()
Restore the original method implementation
|
callback, callback, clone, createReturnValueByFields, dispose, getCallingConvention, getDebugInfo, getLength, getParameters, getReturnValue, init, isNull, isUseFieldsForCallbackParameters, read, restoreState, saveState, setCallingConvention, setUseFieldsForCallbackParameters, toPointer, writeprotected Method(CClass cclass)
init() to initialize method arguments/return.cclass - objective-c classprotected final void init(Sel sel, com.jniwrapper.Parameter[] params, com.jniwrapper.Parameter retVal)
sel - selector to methodparams - callback function argumentsretVal - callback function return valueprotected Id getId()
protected Sel getSel()
public void register()
public void unregister()
protected final void invokeOriginal(com.jniwrapper.Parameter returnValue,
com.jniwrapper.Parameter[] parameters)
throws com.jniwrapper.FunctionExecutionException
returnValue - reference to return valueparameters - array of parameters of called functioncom.jniwrapper.FunctionExecutionException