Class XRefFieldLocation

  • All Implemented Interfaces:
    java.lang.Comparable<ProgramLocation>
    Direct Known Subclasses:
    XRefHeaderFieldLocation

    public class XRefFieldLocation
    extends CodeUnitLocation
    The XRefFieldLocation class contains specific location information within the XREF field of a CodeUnitLocation object.
    • Constructor Detail

      • XRefFieldLocation

        public XRefFieldLocation​(Program program,
                                 Address addr,
                                 int[] componentPath,
                                 Address refAddr,
                                 int index,
                                 int charOffset)
        Construct a new XRefFieldLocation object.
        Parameters:
        program - the program of the location
        addr - address of the location appear at more than one group path); may be null
        componentPath - array of indexes for each nested data component; the index is the data component's index within its parent; may be null
        refAddr - the reference address at this location.
        index - the index of the XREF in the list of all XREFs at this address.
        charOffset - the character position within the XREF.
      • XRefFieldLocation

        public XRefFieldLocation()
        Creates a cross reference field location. Should only be used for XML restoring.
    • Method Detail

      • getIndex

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