Class EquateOperandFieldLocation

    • Constructor Detail

      • EquateOperandFieldLocation

        public EquateOperandFieldLocation​(Program program,
                                          Address addr,
                                          Address refAddr,
                                          java.lang.String rep,
                                          Equate equate,
                                          int opIndex,
                                          int subOpIndex,
                                          int charOffset)
        Parameters:
        program - The program
        addr - the address of the location
        refAddr - the reference address.
        rep - the representation of the equate location
        equate - the equate object.
        opIndex - the operand index
        subOpIndex - the operand subOpIndex
        charOffset - the character offset in to subOpPiece.
      • EquateOperandFieldLocation

        public EquateOperandFieldLocation()
        Default constructor needed for restoring an operand field location from XML.
    • Method Detail

      • getEquate

        public Equate getEquate()
        Returns the equate at this operand field location.
        Returns:
        equate
      • getEquateValue

        public long getEquateValue()
      • toString

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

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

        public void restoreState​(Program p,
                                 SaveState obj)
        Description copied from class: ProgramLocation
        Restore this program location using the given program and save state object.
        Overrides:
        restoreState in class OperandFieldLocation
        Parameters:
        p - program to restore from
        obj - the save state to restore from
      • 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 OperandFieldLocation
        Parameters:
        obj - the save state object for saving the location