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.
  • 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 a ParsedCodeAccess record class.
      Parameters:
      kind - the value for the kind record component
      opcode - the value for the opcode record component
      targetOwnerDescriptor - the value for the targetOwnerDescriptor record component
      targetName - the value for the targetName record component
      targetDescriptor - the value for the targetDescriptor record component
      interfaceTarget - the value for the interfaceTarget record component
      bytecodeOffset - the value for the bytecodeOffset record component
  • Method Details

    • compareTo

      public int compareTo(ParsedCodeAccess other)
      Specified by:
      compareTo in interface Comparable<ParsedCodeAccess>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      public ParsedCodeAccess.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • opcode

      public ParsedCodeAccess.Opcode opcode()
      Returns the value of the opcode record component.
      Returns:
      the value of the opcode record component
    • targetOwnerDescriptor

      public String targetOwnerDescriptor()
      Returns the value of the targetOwnerDescriptor record component.
      Returns:
      the value of the targetOwnerDescriptor record component
    • targetName

      public String targetName()
      Returns the value of the targetName record component.
      Returns:
      the value of the targetName record component
    • targetDescriptor

      public String targetDescriptor()
      Returns the value of the targetDescriptor record component.
      Returns:
      the value of the targetDescriptor record component
    • interfaceTarget

      public boolean interfaceTarget()
      Returns the value of the interfaceTarget record component.
      Returns:
      the value of the interfaceTarget record component
    • bytecodeOffset

      public int bytecodeOffset()
      Returns the value of the bytecodeOffset record component.
      Returns:
      the value of the bytecodeOffset record component