Class OffsetFieldLocation

All Implemented Interfaces:
Cloneable, Comparable<ProgramLocation>

public class OffsetFieldLocation extends CodeUnitLocation
Provides specific information about a program location within an offset field
  • Constructor Details

    • OffsetFieldLocation

      public OffsetFieldLocation(Program program, Address addr, int[] componentPath, int charOffset, OffsetFieldType type)
      Creates a new OffsetFieldLocation for the given address
      Parameters:
      program - the program
      addr - the address of the byte for this location
      componentPath - the path to data, or null
      charOffset - the position into the string representation indicating the exact position within the field
      type - The type of offset field
    • OffsetFieldLocation

      public OffsetFieldLocation(OffsetFieldType type)
      Default constructor needed for restoring the field location from XML
      Parameters:
      type - The type of offset field
  • Method Details

    • getType

      public OffsetFieldType getType()
      Returns the type of offset field.
      Returns:
      the type of offset field