public final class CallContext extends Object
Constructor and Description |
---|
CallContext(Type returnType,
Type... parameterTypes)
Creates a new instance of Function with default calling convention.
|
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention)
Creates a new instance of Function.
|
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
|
boolean |
equals(Object o) |
protected void |
finalize() |
static CallContext |
getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno)
Returns a
CallContext instance. |
static CallContext |
getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
int |
getParameterCount()
Gets the number of parameters the native function accepts.
|
Type |
getParameterType(int index)
Gets the type of a parameter.
|
int |
getRawParameterSize()
Gets the number of bytes required to pack all the parameters this function
accepts, into a region of memory.
|
Type |
getReturnType()
Gets the native return type of this function.
|
int |
hashCode() |
public CallContext(Type returnType, Type... parameterTypes)
returnType
- The return type of the native function.parameterTypes
- The parameter types the function accepts.public CallContext(Type returnType, Type[] parameterTypes, CallingConvention convention)
returnType
- The return type of the native function.parameterTypes
- The parameter types the function accepts.convention
- The calling convention of the function.public CallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)
public static CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)
CallContext
instance. This may return a previously cached instance that matches
the signature requested, and should be used in preference to instantiating new instances.returnType
- The return type of the native function.parameterTypes
- The parameter types the function accepts.convention
- The calling convention of the function.saveErrno
- Indicates that the errno should be savedpublic static CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect)
public final int getParameterCount()
public final int getRawParameterSize()
public final Type getReturnType()
public final Type getParameterType(int index)
index
- The index of the parameter in the function signature@Deprecated public final void dispose()
Copyright © 2018. All rights reserved.