Record Class ParsedConstantLoadSite
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedConstantLoadSite
- All Implemented Interfaces:
Comparable<ParsedConstantLoadSite>
public record ParsedConstantLoadSite(String memberName, String memberDescriptor, int bytecodeOffset)
extends Record
implements Comparable<ParsedConstantLoadSite>
Member and bytecode offset that loaded a constant-pool entry.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedConstantLoadSite(String memberName, String memberDescriptor, int bytecodeOffset) Creates an instance of aParsedConstantLoadSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebytecodeOffsetrecord component.intcompareTo(ParsedConstantLoadSite other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thememberDescriptorrecord component.Returns the value of thememberNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedConstantLoadSite
Creates an instance of aParsedConstantLoadSiterecord class.- Parameters:
memberName- the value for thememberNamerecord componentmemberDescriptor- the value for thememberDescriptorrecord componentbytecodeOffset- the value for thebytecodeOffsetrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedConstantLoadSite>
-
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. -
memberName
Returns the value of thememberNamerecord component.- Returns:
- the value of the
memberNamerecord component
-
memberDescriptor
Returns the value of thememberDescriptorrecord component.- Returns:
- the value of the
memberDescriptorrecord component
-
bytecodeOffset
public int bytecodeOffset()Returns the value of thebytecodeOffsetrecord component.- Returns:
- the value of the
bytecodeOffsetrecord component
-