Class VariableNameFieldLocation

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

    public class VariableNameFieldLocation
    extends VariableLocation
    The VariableNameFieldLocation class provides specific information about the variable name field within a program location.
    • Constructor Detail

      • VariableNameFieldLocation

        public VariableNameFieldLocation​(Program program,
                                         Address locationAddr,
                                         Variable var,
                                         int charOffset)
        Construct a new VariableNameFieldLocation object.
        Parameters:
        program - the program of the location
        locationAddr - the address of the listing location (i.e., referent code unit)
        var - the variable the name is for.
        charOffset - the position within the function name string for this location.
      • VariableNameFieldLocation

        public VariableNameFieldLocation​(Program program,
                                         Variable var,
                                         int charOffset)
        Construct a new VariableNameFieldLocation object. Variable function entry point is the assumed listing location (i.e., referent code unit). Care should be taken if variable corresponds to an EXTERNAL function.
        Parameters:
        program - the program of the location
        var - the variable the name is for.
        charOffset - the position within the function name string for this location.
      • VariableNameFieldLocation

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

      • getName

        public java.lang.String getName()
        Returns the name of the variable for this location.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class VariableLocation
        See Also:
        Object.equals(java.lang.Object)
      • restoreState

        public void restoreState​(Program p,
                                 SaveState obj)
        Description copied from class: FunctionLocation
        Restore this function location using the given program and save state object.
        Overrides:
        restoreState in class VariableLocation
        Parameters:
        p - the program containing the function location
        obj - the save state object for saving the location
      • saveState

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