Record Class AssemblyProcedure

java.lang.Object
java.lang.Record
org.applecommander.os.pascal.AssemblyProcedure

public record AssemblyProcedure(DataBuffer data, int procNum, int relocSegNum, int enterIC, int attrs, int endIC, int[] baseRelativeReloc, int[] segRelativeReloc, int[] procRelativeReloc, int[] interpRelativeReloc) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssemblyProcedure(DataBuffer data, int procNum, int relocSegNum, int enterIC, int attrs, int endIC, int[] baseRelativeReloc, int[] segRelativeReloc, int[] procRelativeReloc, int[] interpRelativeReloc)
    Creates an instance of a AssemblyProcedure record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the attrs record component.
    int[]
    Returns the value of the baseRelativeReloc record component.
    byte[]
     
    Returns the value of the data record component.
    int
    Returns the value of the endIC record component.
    int
    Returns the value of the enterIC record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int[]
    Returns the value of the interpRelativeReloc record component.
    load(DataBuffer data, int attrs, int givenProcNum)
     
    int
    Returns the value of the procNum record component.
    int[]
    Returns the value of the procRelativeReloc record component.
    int
    Returns the value of the relocSegNum record component.
    int[]
    Returns the value of the segRelativeReloc record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AssemblyProcedure

      public AssemblyProcedure(DataBuffer data, int procNum, int relocSegNum, int enterIC, int attrs, int endIC, int[] baseRelativeReloc, int[] segRelativeReloc, int[] procRelativeReloc, int[] interpRelativeReloc)
      Creates an instance of a AssemblyProcedure record class.
      Parameters:
      data - the value for the data record component
      procNum - the value for the procNum record component
      relocSegNum - the value for the relocSegNum record component
      enterIC - the value for the enterIC record component
      attrs - the value for the attrs record component
      endIC - the value for the endIC record component
      baseRelativeReloc - the value for the baseRelativeReloc record component
      segRelativeReloc - the value for the segRelativeReloc record component
      procRelativeReloc - the value for the procRelativeReloc record component
      interpRelativeReloc - the value for the interpRelativeReloc record component
  • Method Details

    • codeBytes

      public byte[] codeBytes()
    • load

      public static AssemblyProcedure load(DataBuffer data, int attrs, int givenProcNum)
    • 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 '=='.
      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.
    • data

      public DataBuffer data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component
    • procNum

      public int procNum()
      Returns the value of the procNum record component.
      Returns:
      the value of the procNum record component
    • relocSegNum

      public int relocSegNum()
      Returns the value of the relocSegNum record component.
      Returns:
      the value of the relocSegNum record component
    • enterIC

      public int enterIC()
      Returns the value of the enterIC record component.
      Returns:
      the value of the enterIC record component
    • attrs

      public int attrs()
      Returns the value of the attrs record component.
      Returns:
      the value of the attrs record component
    • endIC

      public int endIC()
      Returns the value of the endIC record component.
      Returns:
      the value of the endIC record component
    • baseRelativeReloc

      public int[] baseRelativeReloc()
      Returns the value of the baseRelativeReloc record component.
      Returns:
      the value of the baseRelativeReloc record component
    • segRelativeReloc

      public int[] segRelativeReloc()
      Returns the value of the segRelativeReloc record component.
      Returns:
      the value of the segRelativeReloc record component
    • procRelativeReloc

      public int[] procRelativeReloc()
      Returns the value of the procRelativeReloc record component.
      Returns:
      the value of the procRelativeReloc record component
    • interpRelativeReloc

      public int[] interpRelativeReloc()
      Returns the value of the interpRelativeReloc record component.
      Returns:
      the value of the interpRelativeReloc record component