Class ScatteredRelocationInfo

    • Constructor Detail

      • ScatteredRelocationInfo

        public ScatteredRelocationInfo()
        DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
    • Method Detail

      • isScattered

        public boolean isScattered()
        Returns true this is a scattered relocation.
        Returns:
        true this is a scattered relocation
      • getValue

        public int getValue()
        The address of the relocatable expression for the item in the file that needs to be updated if the address is changed. For relocatable expressions with the difference of two section addresses, the address from which to subtract (in mathematical terms, the minuend) is contained in the first relocation entry and the address to subtract (the subtrahend) is contained in the second relocation entry.
        Returns:
      • toValues

        public long[] toValues()
        Description copied from class: RelocationInfo
        Returns the values array for storage into the program's relocation table.
        Overrides:
        toValues in class RelocationInfo
        Returns:
        the values array for storage into the program's relocation table
      • toDataType

        public DataType toDataType()
                            throws DuplicateNameException,
                                   java.io.IOException
        Description copied from interface: StructConverter
        Returns a structure datatype representing the contents of the implementor of this interface.

        For example, given:

         class A {
             int foo;
             double bar;
         }
         

        The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

        Specified by:
        toDataType in interface StructConverter
        Overrides:
        toDataType in class RelocationInfo
        Returns:
        returns a structure datatype representing the implementor of this interface
        Throws:
        DuplicateNameException - when a datatype of the same name already exists
        java.io.IOException
        See Also:
        StructureDataType