| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | contextAddress
The native address of the context |
| pack-priv volatile int | |
| pack-priv final int | |
| pack-priv final int | |
| private final Foreign | foreign
A handle to the foreign interface to keep it alive as long as this object is alive |
| private final int | parameterCount
The number of parameters this function takes |
| pack-priv final long[] | |
| pack-priv final Type[] | parameterTypes
The parameter types of this function |
| private final int | rawParameterSize
The size of buffer required when packing parameters |
| pack-priv final Type | returnType
The return type of this function |
| pack-priv final AtomicIntegerFieldUpdater |
| Access | Constructor and Description |
|---|---|
| public | CallContext(Type
The return type of the native function. returnType, Type... The parameter types the function accepts. parameterTypes)Creates a new instance of |
| public | CallContext(Type
The return type of the native function. returnType, Type[] The parameter types the function accepts. parameterTypes, CallingConvention The calling convention of the function. convention)Creates a new instance of |
| public | CallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)
|
| pack-priv | CallContext(Type
The return type of the native function. returnType, int The number of parameters that are fixed, for varargs calls fixedParamCount, Type[] The parameter types the function accepts. parameterTypes, CallingConvention The calling convention of the function. convention, boolean Whether the errno should be saved or not saveErrno, boolean faultProtect)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| protected void | finalize()
Overrides java. |
| pack-priv final long | Returns: The address of the native function context struct.Gets the address of the function context. |
| public static CallContext | Returns: An instance of CallContextThe return type of the native function. returnType, Type[] The parameter types the function accepts. parameterTypes, CallingConvention The calling convention of the function. convention, boolean Indicates that the errno should be saved saveErrno)Returns a |
| public static CallContext | getCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)
|
| public static CallContext | getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect)
|
| public final int | Returns: The number of parameters the native function accepts.Gets the number of parameters the native function accepts. |
| public final Type | Returns: TheType of the parameter.The index of the parameter in the function signature index)Gets the type of a parameter. |
| public final int | Returns: The number of bytes required to store all paraameters of this function.Gets the number of bytes required to pack all the parameters this function accepts, into a region of memory. |
| public final Type | Returns: The native return type of this function.Gets the native return type of this function. |
| public int |
| contextAddress | back to summary |
|---|---|
| pack-priv final long contextAddress The native address of the context | |
| disposed | back to summary |
|---|---|
| pack-priv volatile int disposed | |
| fixedParamCount | back to summary |
|---|---|
| pack-priv final int fixedParamCount | |
| flags | back to summary |
|---|---|
| pack-priv final int flags | |
| foreign | back to summary |
|---|---|
| private final Foreign foreign A handle to the foreign interface to keep it alive as long as this object is alive
| |
| parameterCount | back to summary |
|---|---|
| private final int parameterCount The number of parameters this function takes | |
| parameterTypeHandles | back to summary |
|---|---|
| pack-priv final long[] parameterTypeHandles | |
| parameterTypes | back to summary |
|---|---|
| pack-priv final Type[] parameterTypes The parameter types of this function | |
| rawParameterSize | back to summary |
|---|---|
| private final int rawParameterSize The size of buffer required when packing parameters | |
| returnType | back to summary |
|---|---|
| pack-priv final Type returnType The return type of this function | |
| UPDATER | back to summary |
|---|---|
| pack-priv final AtomicIntegerFieldUpdater<CallContext> UPDATER | |
| CallContext | back to summary |
|---|---|
| public CallContext(Type returnType, Type... parameterTypes) Creates a new instance of | |
| CallContext | back to summary |
|---|---|
| public CallContext(Type returnType, Type[] parameterTypes, CallingConvention convention) Creates a new instance of
| |
| CallContext | back to summary |
|---|---|
| public CallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) | |
| CallContext | back to summary |
|---|---|
| pack-priv CallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) Creates a new instance of
| |
| dispose | back to summary |
|---|---|
| public final void dispose()
Deprecated
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getAddress | back to summary |
|---|---|
| pack-priv final long getAddress() Gets the address of the function context.
| |
| getCallContext | back to summary |
|---|---|
| public static CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) Returns a
| |
| getCallContext | back to summary |
|---|---|
| public static CallContext getCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) | |
| getCallContext | back to summary |
|---|---|
| public static CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) | |
| getParameterCount | back to summary |
|---|---|
| public final int getParameterCount() Gets the number of parameters the native function accepts.
| |
| getParameterType | back to summary |
|---|---|
| public final Type getParameterType(int index) Gets the type of a parameter.
| |
| getRawParameterSize | back to summary |
|---|---|
| public final int getRawParameterSize() Gets the number of bytes required to pack all the parameters this function accepts, into a region of memory.
| |
| getReturnType | back to summary |
|---|---|
| public final Type getReturnType() Gets the native return type of this function.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |