Record Class ParsedCodeAccess
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedCodeAccess
- All Implemented Interfaces:
Comparable<ParsedCodeAccess>
public record ParsedCodeAccess(ParsedCodeAccess.Kind kind, ParsedCodeAccess.Opcode opcode, String targetOwnerDescriptor, String targetName, String targetDescriptor, boolean interfaceTarget, int bytecodeOffset)
extends Record
implements Comparable<ParsedCodeAccess>
Backend-neutral field or method access extracted from one Code attribute.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionParsedCodeAccess(ParsedCodeAccess.Kind kind, ParsedCodeAccess.Opcode opcode, String targetOwnerDescriptor, String targetName, String targetDescriptor, boolean interfaceTarget, int bytecodeOffset) Creates an instance of aParsedCodeAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebytecodeOffsetrecord component.intcompareTo(ParsedCodeAccess other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinterfaceTargetrecord component.kind()Returns the value of thekindrecord component.opcode()Returns the value of theopcoderecord component.Returns the value of thetargetDescriptorrecord component.Returns the value of thetargetNamerecord component.Returns the value of thetargetOwnerDescriptorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedCodeAccess
public ParsedCodeAccess(ParsedCodeAccess.Kind kind, ParsedCodeAccess.Opcode opcode, String targetOwnerDescriptor, String targetName, String targetDescriptor, boolean interfaceTarget, int bytecodeOffset) Creates an instance of aParsedCodeAccessrecord class.- Parameters:
kind- the value for thekindrecord componentopcode- the value for theopcoderecord componenttargetOwnerDescriptor- the value for thetargetOwnerDescriptorrecord componenttargetName- the value for thetargetNamerecord componenttargetDescriptor- the value for thetargetDescriptorrecord componentinterfaceTarget- the value for theinterfaceTargetrecord componentbytecodeOffset- the value for thebytecodeOffsetrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedCodeAccess>
-
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
-
opcode
Returns the value of theopcoderecord component.- Returns:
- the value of the
opcoderecord component
-
targetOwnerDescriptor
Returns the value of thetargetOwnerDescriptorrecord component.- Returns:
- the value of the
targetOwnerDescriptorrecord component
-
targetName
Returns the value of thetargetNamerecord component.- Returns:
- the value of the
targetNamerecord component
-
targetDescriptor
Returns the value of thetargetDescriptorrecord component.- Returns:
- the value of the
targetDescriptorrecord component
-
interfaceTarget
public boolean interfaceTarget()Returns the value of theinterfaceTargetrecord component.- Returns:
- the value of the
interfaceTargetrecord component
-
bytecodeOffset
public int bytecodeOffset()Returns the value of thebytecodeOffsetrecord component.- Returns:
- the value of the
bytecodeOffsetrecord component
-