Class SpacerFieldLocation

  • All Implemented Interfaces:
    java.lang.Comparable<ProgramLocation>

    public class SpacerFieldLocation
    extends CodeUnitLocation
    The SpacerFieldLocation class contains specific location information within a spacer field of a CodeUnitLocation object.
    • Constructor Detail

      • SpacerFieldLocation

        public SpacerFieldLocation​(Program program,
                                   Address addr,
                                   int[] componentPath,
                                   int charOffset,
                                   java.lang.String text)
        Construct a new SpacerFieldLocation.
        Parameters:
        the - program of the location
        addr - the address of the codeunit.
        componentPath - the componentPath of the codeUnit
        charOffset - the character position on the row of the location.
        text - the constant text in this spacer.
      • SpacerFieldLocation

        public SpacerFieldLocation()
        Should only be used by XML restoration.
    • Method Detail

      • getText

        public java.lang.String getText()
        Returns the text of the Spacer field containing this location.
      • toString

        public java.lang.String toString()
        returns a String representation of this location.
        Overrides:
        toString in class ProgramLocation
      • saveState

        public void saveState​(SaveState obj)
        Description copied from class: ProgramLocation
        Save this program location to the given save state object.
        Overrides:
        saveState in class ProgramLocation
        Parameters:
        obj - the save state object for saving the location