Record Class ParsedMethodHandle
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedMethodHandle
- All Implemented Interfaces:
Comparable<ParsedMethodHandle>
public record ParsedMethodHandle(String kind, int referenceKind, String ownerDescriptor, String name, String lookupDescriptor, boolean ownerInterface)
extends Record
implements Comparable<ParsedMethodHandle>
Backend-neutral direct method-handle constant.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedMethodHandle(String kind, int referenceKind, String ownerDescriptor, String name, String lookupDescriptor, boolean ownerInterface) Creates an instance of aParsedMethodHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedMethodHandle 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.Returns the value of theownerDescriptorrecord component.booleanReturns the value of theownerInterfacerecord component.intReturns the value of thereferenceKindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedMethodHandle
public ParsedMethodHandle(String kind, int referenceKind, String ownerDescriptor, String name, String lookupDescriptor, boolean ownerInterface) Creates an instance of aParsedMethodHandlerecord class.- Parameters:
kind- the value for thekindrecord componentreferenceKind- the value for thereferenceKindrecord componentownerDescriptor- the value for theownerDescriptorrecord componentname- the value for thenamerecord componentlookupDescriptor- the value for thelookupDescriptorrecord componentownerInterface- the value for theownerInterfacerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedMethodHandle>
-
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
-
ownerDescriptor
Returns the value of theownerDescriptorrecord component.- Returns:
- the value of the
ownerDescriptorrecord 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
-