Package ghidra.app.util.bin.format.macho.relocation

# Class MachoRelocationHandlerFactory

java.lang.Object
ghidra.app.util.bin.format.macho.relocation.MachoRelocationHandlerFactory

public final class MachoRelocationHandlerFactory extends Object
A class that gets the appropriate Mach-O relocation handler for a specific Mach-O file

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MachoRelocationHandlerFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static final MachoRelocationHandler`
  `getHandler(MachHeader header)`
  Gets the appropriate Mach-O relocation handler that is capable of relocating the Mach-O that is defined by the given Mach-O header

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MachoRelocationHandlerFactory

    public MachoRelocationHandlerFactory()

- ## Method Details

  - ### getHandler

    public static final MachoRelocationHandler getHandler(MachHeader header)
    Gets the appropriate Mach-O relocation handler that is capable of relocating the Mach-O that is defined by the given Mach-O header
    Parameters:
      `header` - The header associated with the Mach-O to relocate
    Returns:
      The appropriate Mach-O relocation handler that is capable of relocating the Mach-O that is defined by the given Mach-O header. Could return null if no such handler was found.