Implementation Specification
This class and its subclasses are immutable, thread-safe and value-based.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final MemoryLayout |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public FunctionDescriptorImpl | Returns: the new function descriptor.the argument layouts to append. addedLayouts)Implements java. Returns a function descriptor with the given argument layouts appended to the argument layout array of this function descriptor. |
| public List | Returns: the argument layouts associated with this function descriptor (as an immutable list)Implements java. Returns the argument layouts associated with this function descriptor (as an immutable list). |
| private static Class | |
| public FunctionDescriptorImpl | Returns: the new function descriptor.the new return layout. newReturn)Implements java. Returns a function descriptor with the given memory layout as the new return layout. |
| public FunctionDescriptorImpl | Returns: the new function descriptor.Implements java. Returns a function descriptor with the return layout dropped. |
| public boolean | Returns: true if the specified object is equal to this function descriptor.the object to be compared for equality with this function descriptor. other)Overrides java. Compares the specified object with this function descriptor for equality. |
| public int | Returns: the hash code value for this function descriptorOverrides java. Returns the hash code value for this function descriptor. |
| public FunctionDescriptorImpl | Returns: the new function descriptor.the index at which to insert the arguments index, MemoryLayout... the argument layouts to insert at given index. addedLayouts)Implements java. Returns a function descriptor with the given argument layouts inserted at the given index, into the argument layout array of this function descriptor. |
| public static FunctionDescriptor | |
| public static FunctionDescriptor | |
| public Optional | Returns: the return layout (if any) associated with this function descriptorImplements java. Returns the return layout (if any) associated with this function descriptor. |
| public MethodType | toMethodType()
Implements java. Returns the method type consisting of the carrier types of the layouts in this function descriptor. |
| public String | Returns: the string representation of this function descriptorOverrides java. Returns the string representation of this function descriptor. |
| argLayouts | back to summary |
|---|---|
| private final List<MemoryLayout> argLayouts | |
| resLayout | back to summary |
|---|---|
| private final MemoryLayout resLayout | |
| FunctionDescriptorImpl | back to summary |
|---|---|
| private FunctionDescriptorImpl(MemoryLayout resLayout, List<MemoryLayout> argLayouts) | |
| appendArgumentLayouts | back to summary |
|---|---|
| public FunctionDescriptorImpl appendArgumentLayouts(MemoryLayout... addedLayouts) Implements java. Returns a function descriptor with the given argument layouts appended to the argument layout array of this function descriptor.
| |
| argumentLayouts | back to summary |
|---|---|
| public List Implements java. Returns the argument layouts associated with this function descriptor (as an immutable list). .
| |
| carrierTypeFor | back to summary |
|---|---|
| private static Class | |
| changeReturnLayout | back to summary |
|---|---|
| public FunctionDescriptorImpl changeReturnLayout(MemoryLayout newReturn) Implements java. Returns a function descriptor with the given memory layout as the new return layout.
| |
| dropReturnLayout | back to summary |
|---|---|
| public FunctionDescriptorImpl dropReturnLayout() Implements java. Returns a function descriptor with the return layout dropped. This is useful to model functions which return no values.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compares the specified object with this function descriptor for equality. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this function descriptor.
| |
| insertArgumentLayouts | back to summary |
|---|---|
| public FunctionDescriptorImpl insertArgumentLayouts(int index, MemoryLayout... addedLayouts) Implements java. Returns a function descriptor with the given argument layouts inserted at the given index, into the argument layout array of this function descriptor.
| |
| of | back to summary |
|---|---|
| public static FunctionDescriptor of(MemoryLayout resLayout, List<MemoryLayout> argLayouts) | |
| ofVoid | back to summary |
|---|---|
| public static FunctionDescriptor ofVoid(List<MemoryLayout> argLayouts) | |
| returnLayout | back to summary |
|---|---|
| public Optional Implements java. Returns the return layout (if any) associated with this function descriptor.
| |
| toMethodType | back to summary |
|---|---|
| public MethodType toMethodType() Implements java. Doc from java. Returns the method type consisting of the carrier types of the layouts in this function descriptor.
The carrier type of a layout
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of this function descriptor. | |