| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private final Type | |
| private final JavaType | |
| private final String | |
| private List | |
| private JavaType | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final FunctionSymbol | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | MethodBinding(final MethodBinding bindingToCopy)
Constructs a new MethodBinding that is an exact clone of the argument, including the java return type and java argument types. |
| public | MethodBinding(final FunctionSymbol sym, final String delegationImplName, final JavaType javaReturnType, final List<JavaType> javaArgumentTypes, final JavaType containingType, final Type containingCType)
Constructor for calling a C function or a function pointer contained in a struct. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | argumentsUseNIO()
Returns true if any of the outgoing arguments in the method's signature require conversion or checking due to the use of New I/O. |
| public void | |
| protected void | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| protected String | erasedTypeDescriptor(final JavaType type, final boolean eraseBufferAndArrayTypes, final boolean skipBuffers)
|
| public void | findThisPointer()
Find the leftmost argument matching the type of the containing type (for function pointer MethodBindings) and record that as a "this" pointer, meaning that it does not need to be explicitly passed at the Java level. |
| public String | getArgumentName(final int i)
Returns either the argument name specified by the underlying FunctionSymbol or a fabricated argument name based on the position. |
| public Type | |
| public Type | getContainingCType()
Retrieves the containing C type of this MethodBinding if it is for a function pointer contained in a struct. |
| public JavaType | getContainingType()
Retrieves the containing type of this MethodBinding if it is for a function pointer contained in a struct. |
| public Type | |
| public FunctionSymbol | |
| public String | |
| public String | getDescriptor(final boolean forImplementingMethodCall, final boolean eraseBufferAndArrayTypes)
Returns a String containing the descriptor (signature in internal format) of this MethodBinding as it will be emitted. |
| public String | getImplName()
Returns the |
| public String | |
| public JavaType | |
| public JavaType | |
| public String | |
| public String | getNativeName()
Returns the |
| public int | |
| public boolean | hasContainingType()
Indicates whether this MethodBinding is for a function pointer contained in a struct, or to access array- or pointer-data from a struct. |
| public int | |
| public boolean | isArgumentThisPointer(final int i)
Indicates whether the ith argument to this MethodBinding is actually a "this" pointer. |
| public boolean | needsNIOWrappingOrUnwrapping()
Returns true if the function needs NIO-related wrapping/unwrapping or conversion of various arguments. |
| public MethodBinding | replaceJavaArgumentType(final int argumentNumber, final JavaType newArgType)
Creates a new MethodBinding replacing the specified Java argument type with a new argument type. |
| public void | |
| public void | |
| public boolean | signatureCanUseIndirectNIO()
Returns true if it is possible for any of the outgoing arguments to be indirect NIO buffers. |
| public boolean | signatureRequiresStaticInitialization()
Returns true if the wrapper implementation requires
static native code to be initialized, see |
| public boolean | signatureUsesArraysOfCompoundTypeWrappers()
Returns true if the return type or any of the outgoing arguments in the method's signature use arrays of "compound type wrappers", or NIO-based wrappers for C data structures. |
| public boolean | signatureUsesCArrays()
Returns true if the return type or any of the outgoing arguments in the method's signature represent C arrays. |
| public boolean | signatureUsesCompoundTypeWrappers()
Returns true if the return type or any of the outgoing arguments in the method's signature use "compound type wrappers", or NIO-based wrappers for C data structures. |
| public boolean | signatureUsesCPrimitivePointers()
Returns true if the return type or any of the outgoing arguments in the method's signature represent C primitive pointers. |
| public boolean | signatureUsesCVoidPointers()
Returns true if the return type or any of the outgoing arguments in the method's signature represent C void* pointers. |
| public boolean | signatureUsesJavaPrimitiveArrays()
Returns true if the return type or any of the outgoing arguments in the method's signature represent Java primitive arrays. |
| public boolean | signatureUsesNIO()
Returns true if the return type or any of the outgoing arguments in the method's signature require conversion or checking due to the use of New I/O. |
| public String |
| argumentsUseNIO | back to summary |
|---|---|
| private boolean argumentsUseNIO | |
| computedSignatureProperties | back to summary |
|---|---|
| private boolean computedSignatureProperties | |
| containingCType | back to summary |
|---|---|
| private final Type containingCType | |
| containingType | back to summary |
|---|---|
| private final JavaType containingType | |
| delegationImplName | back to summary |
|---|---|
| private final String delegationImplName | |
| javaArgumentTypes | back to summary |
|---|---|
| private List<JavaType> javaArgumentTypes | |
| javaReturnType | back to summary |
|---|---|
| private JavaType javaReturnType | |
| nativeName | back to summary |
|---|---|
| private String nativeName | |
| signatureCanUseIndirectNIO | back to summary |
|---|---|
| private boolean signatureCanUseIndirectNIO | |
| signatureRequiresStaticInitialization | back to summary |
|---|---|
| private boolean signatureRequiresStaticInitialization | |
| signatureUsesArraysOfCompoundTypeWrappers | back to summary |
|---|---|
| private boolean signatureUsesArraysOfCompoundTypeWrappers | |
| signatureUsesCArrays | back to summary |
|---|---|
| private boolean signatureUsesCArrays | |
| signatureUsesCompoundTypeWrappers | back to summary |
|---|---|
| private boolean signatureUsesCompoundTypeWrappers | |
| signatureUsesCPrimitivePointers | back to summary |
|---|---|
| private boolean signatureUsesCPrimitivePointers | |
| signatureUsesCVoidPointers | back to summary |
|---|---|
| private boolean signatureUsesCVoidPointers | |
| signatureUsesJavaPrimitiveArrays | back to summary |
|---|---|
| private boolean signatureUsesJavaPrimitiveArrays | |
| signatureUsesNIO | back to summary |
|---|---|
| private boolean signatureUsesNIO | |
| sym | back to summary |
|---|---|
| private final FunctionSymbol sym | |
| thisPointerIndex | back to summary |
|---|---|
| private int thisPointerIndex | |
| MethodBinding | back to summary |
|---|---|
| public MethodBinding(final MethodBinding bindingToCopy) Constructs a new MethodBinding that is an exact clone of the argument, including the java return type and java argument types. It's safe to modify this binding after construction. | |
| MethodBinding | back to summary |
|---|---|
| public MethodBinding(final FunctionSymbol sym, final String delegationImplName, final JavaType javaReturnType, final List<JavaType> javaArgumentTypes, final JavaType containingType, final Type containingCType) Constructor for calling a C function or a function pointer contained in a struct.
In case of the latter, a struct function pointer,
the arguments | |
| addJavaArgumentType | back to summary |
|---|---|
| public void addJavaArgumentType(final JavaType type) | |
| argumentsUseNIO | back to summary |
|---|---|
| public boolean argumentsUseNIO() Returns true if any of the outgoing arguments in the method's signature require conversion or checking due to the use of New I/O. | |
| clearThisPointer | back to summary |
|---|---|
| public void clearThisPointer() Clears any record of a this pointer for this MethodBinding. | |
| computeSignatureProperties | back to summary |
|---|---|
| protected void computeSignatureProperties() Computes summary information about the method's C and Java signatures. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) 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. | |
| erasedTypeDescriptor | back to summary |
|---|---|
| protected String erasedTypeDescriptor(final JavaType type, final boolean eraseBufferAndArrayTypes, final boolean skipBuffers) | |
| findThisPointer | back to summary |
|---|---|
| public void findThisPointer() Find the leftmost argument matching the type of the containing type (for function pointer MethodBindings) and record that as a "this" pointer, meaning that it does not need to be explicitly passed at the Java level. | |
| getArgumentName | back to summary |
|---|---|
| public String getArgumentName(final int i) Returns either the argument name specified by the underlying FunctionSymbol or a fabricated argument name based on the position. Note that it is currently not guaranteed that there are no namespace clashes with these fabricated argument names. | |
| getCArgumentType | back to summary |
|---|---|
| public Type getCArgumentType(final int i) | |
| getContainingCType | back to summary |
|---|---|
| public Type getContainingCType() Retrieves the containing C type of this MethodBinding if it is for a function pointer contained in a struct. | |
| getContainingType | back to summary |
|---|---|
| public JavaType getContainingType() Retrieves the containing type of this MethodBinding if it is for a function pointer contained in a struct. | |
| getCReturnType | back to summary |
|---|---|
| public Type getCReturnType() | |
| getCSymbol | back to summary |
|---|---|
| public FunctionSymbol getCSymbol() Returns the | |
| getDelegationImplName | back to summary |
|---|---|
| public String getDelegationImplName() The
| |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor(final boolean forImplementingMethodCall, final boolean eraseBufferAndArrayTypes) Returns a String containing the descriptor (signature in internal format) of this MethodBinding as it will be emitted. This is used to disambiguate between overloadings when manually specifying prologue and epilogue code, for example. | |
| getImplName | back to summary |
|---|---|
| public String getImplName() Returns the
| |
| getInterfaceName | back to summary |
|---|---|
| public String getInterfaceName() Returns the | |
| getJavaArgumentType | back to summary |
|---|---|
| public JavaType getJavaArgumentType(final int i) | |
| getJavaReturnType | back to summary |
|---|---|
| public JavaType getJavaReturnType() | |
| getName | back to summary |
|---|---|
| public String getName() Returns the | |
| getNativeName | back to summary |
|---|---|
| public String getNativeName() Returns the | |
| getNumArguments | back to summary |
|---|---|
| public int getNumArguments() | |
| hasContainingType | back to summary |
|---|---|
| public boolean hasContainingType() Indicates whether this MethodBinding is for a function pointer contained in a struct, or to access array- or pointer-data from a struct.
The native calling convention, i.e. via a 'this' function pointer
or by a static native function must be decided in the
| |
| 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
| |
| isArgumentThisPointer | back to summary |
|---|---|
| public boolean isArgumentThisPointer(final int i) Indicates whether the ith argument to this MethodBinding is actually a "this" pointer. | |
| needsNIOWrappingOrUnwrapping | back to summary |
|---|---|
| public boolean needsNIOWrappingOrUnwrapping() Returns true if the function needs NIO-related wrapping/unwrapping or conversion of various arguments. Currently this returns the logical OR of signatureUsesNIO(), signatureUsesCompoundTypeWrappers() and signatureUsesArraysOfCompoundTypeWrappers(). | |
| replaceJavaArgumentType | back to summary |
|---|---|
| public MethodBinding replaceJavaArgumentType(final int argumentNumber, final JavaType newArgType) Creates a new MethodBinding replacing the specified Java argument type with a new argument type. If argumentNumber is less than 0 then replaces the return type. | |
| setJavaReturnType | back to summary |
|---|---|
| public void setJavaReturnType(final JavaType type) | |
| setNativeName | back to summary |
|---|---|
| public void setNativeName(final String s) | |
| signatureCanUseIndirectNIO | back to summary |
|---|---|
| public boolean signatureCanUseIndirectNIO() Returns true if it is possible for any of the outgoing arguments to be indirect NIO buffers. | |
| signatureRequiresStaticInitialization | back to summary |
|---|---|
| public boolean signatureRequiresStaticInitialization() Returns true if the wrapper implementation requires
static native code to be initialized, see Currently triggered by:
| |
| signatureUsesArraysOfCompoundTypeWrappers | back to summary |
|---|---|
| public boolean signatureUsesArraysOfCompoundTypeWrappers() Returns true if the return type or any of the outgoing arguments in the method's signature use arrays of "compound type wrappers", or NIO-based wrappers for C data structures. | |
| signatureUsesCArrays | back to summary |
|---|---|
| public boolean signatureUsesCArrays() Returns true if the return type or any of the outgoing arguments in the method's signature represent C arrays. | |
| signatureUsesCompoundTypeWrappers | back to summary |
|---|---|
| public boolean signatureUsesCompoundTypeWrappers() Returns true if the return type or any of the outgoing arguments in the method's signature use "compound type wrappers", or NIO-based wrappers for C data structures. | |
| signatureUsesCPrimitivePointers | back to summary |
|---|---|
| public boolean signatureUsesCPrimitivePointers() Returns true if the return type or any of the outgoing arguments in the method's signature represent C primitive pointers. | |
| signatureUsesCVoidPointers | back to summary |
|---|---|
| public boolean signatureUsesCVoidPointers() Returns true if the return type or any of the outgoing arguments in the method's signature represent C void* pointers. | |
| signatureUsesJavaPrimitiveArrays | back to summary |
|---|---|
| public boolean signatureUsesJavaPrimitiveArrays() Returns true if the return type or any of the outgoing arguments in the method's signature represent Java primitive arrays. | |
| signatureUsesNIO | back to summary |
|---|---|
| public boolean signatureUsesNIO() Returns true if the return type or any of the outgoing arguments in the method's signature require conversion or checking due to the use of New I/O. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the signature of this binding.
| |