Class VariableXRefFieldLocation

All Implemented Interfaces:
Cloneable, Comparable<ProgramLocation>
Direct Known Subclasses:
VariableXRefHeaderFieldLocation

public class VariableXRefFieldLocation extends VariableLocation
The VariableXRefFieldLocation class provides specific information about the variable's cross reference field within a program location.
  • Constructor Details

    • VariableXRefFieldLocation

      public VariableXRefFieldLocation(Program program, Variable var, Address refAddr, int index, int charOffset)
      Construct a new VariableXRefFieldLocation object.
      Parameters:
      program - the program of the location
      var - the variable
      refAddr - the reference address.
      index - the index of the XREF (tells which XREF).
      charOffset - the character position within the XREF.
    • VariableXRefFieldLocation

      public VariableXRefFieldLocation()
      Should only be used by XML restoration.
  • Method Details

    • getIndex

      public int getIndex()
      Returns the index of the XREF in the list.
    • getReferenceAddress

      public Address getReferenceAddress()
      Returns the reference address at this location.
    • toString

      public String toString()
      Returns a String representation of this location.
      Overrides:
      toString in class VariableLocation