Record Class JavaMethodHandle
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaMethodHandle
- All Implemented Interfaces:
Comparable<JavaMethodHandle>
public record JavaMethodHandle(JavaMethodHandleKind kind, int referenceKind, JvmType ownerType, String name, String lookupDescriptor, boolean ownerInterface)
extends Record
implements Comparable<JavaMethodHandle>
Unresolved direct method-handle constant used as bootstrap or implementation evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaMethodHandle(JavaMethodHandleKind kind, int referenceKind, JvmType ownerType, String name, String lookupDescriptor, boolean ownerInterface) Creates an instance of aJavaMethodHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaMethodHandle other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thelookupDescriptorrecord component.name()Returns the value of thenamerecord component.booleanReturns the value of theownerInterfacerecord component.Returns the value of theownerTyperecord component.intReturns the value of thereferenceKindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaMethodHandle
public JavaMethodHandle(JavaMethodHandleKind kind, int referenceKind, JvmType ownerType, String name, String lookupDescriptor, boolean ownerInterface) Creates an instance of aJavaMethodHandlerecord class.- Parameters:
kind- the value for thekindrecord componentreferenceKind- the value for thereferenceKindrecord componentownerType- the value for theownerTyperecord componentname- the value for thenamerecord componentlookupDescriptor- the value for thelookupDescriptorrecord componentownerInterface- the value for theownerInterfacerecord component
-
-
Method Details
-
stableKey
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaMethodHandle>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
referenceKind
public int referenceKind()Returns the value of thereferenceKindrecord component.- Returns:
- the value of the
referenceKindrecord component
-
ownerType
Returns the value of theownerTyperecord component.- Returns:
- the value of the
ownerTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
lookupDescriptor
Returns the value of thelookupDescriptorrecord component.- Returns:
- the value of the
lookupDescriptorrecord component
-
ownerInterface
public boolean ownerInterface()Returns the value of theownerInterfacerecord component.- Returns:
- the value of the
ownerInterfacerecord component
-