Class VariableTypeFieldLocation

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

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

      • VariableTypeFieldLocation

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

        public VariableTypeFieldLocation​(Program program,
                                         Variable var,
                                         int charOffset)
        Construct a new VariableTypeFieldLocation 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:
        var - the variable associated with this type field location.
        charOffset - the position within the function name string for this location.
        the - program of the location
      • VariableTypeFieldLocation

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

      • getType

        public java.lang.String getType()
        Return the function stack variable type string at this location.
      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class VariableLocation
        See Also:
        Object.equals(java.lang.Object)
      • 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