Class Relocation


  • public class Relocation
    extends java.lang.Object
    A class to store the information needed for a single program relocation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Relocation​(Address addr, int type, long[] values, byte[] bytes, java.lang.String symbolName)
      Constructs a new relocation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Address getAddress()
      Returns the address where the relocation is required.
      byte[] getBytes()
      Returns the original instruction bytes affected by relocation.
      java.lang.String getSymbolName()
      The name of the symbol being relocated or null if there is no symbol name.
      int getType()
      Returns the type of the relocation to perform.
      long[] getValues()
      Returns the value needed when performing the relocation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Relocation

        public Relocation​(Address addr,
                          int type,
                          long[] values,
                          byte[] bytes,
                          java.lang.String symbolName)
        Constructs a new relocation.
        Parameters:
        addr - the address where the relocation is required
        type - the type of relocation to perform
        values - the values needed when performing the relocation
        bytes - original instruction bytes affected by relocation
        symbolName - the name of the symbol being relocated
    • Method Detail

      • getAddress

        public Address getAddress()
        Returns the address where the relocation is required.
        Returns:
        the address where the relocation is required
      • getType

        public int getType()
        Returns the type of the relocation to perform.
        Returns:
        the type of the relocation to perform
      • getValues

        public long[] getValues()
        Returns the value needed when performing the relocation.
        Returns:
        the value needed when performing the relocation
      • getBytes

        public byte[] getBytes()
        Returns the original instruction bytes affected by relocation.
        Returns:
        original instruction bytes affected by relocation
      • getSymbolName

        public java.lang.String getSymbolName()
        The name of the symbol being relocated or null if there is no symbol name.
        Returns:
        the name of the symbol being relocated or null if there is no symbol name.