java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.codeless.Module
All Implemented Interfaces:
ISegment<Long>

@Ser public class Module extends Object implements ISegment<Long>
Definition of a library module (i.e. an object file)
  • Method Details

    • getBegin

      public Long getBegin()
      Description copied from interface: ISegment
      Get the address where the segment starts.
      Specified by:
      getBegin in interface ISegment<Long>
      Returns:
      the address where the segment begins
    • getEnd

      public Long getEnd()
      Description copied from interface: ISegment
      Get the address where the segment ends (exclusive).
      Specified by:
      getEnd in interface ISegment<Long>
      Returns:
      the address where the segment ends
    • createKnownModule

      public static Module createKnownModule(ModuleId id)
      Create a known module without address bounds.
      Parameters:
      id - module identifier
      Returns:
      module descriptor
    • createKnownModule

      public static Module createKnownModule(ModuleId id, long begin, long end)
      Create a known module with address bounds.
      Parameters:
      id - module identifier
      begin - module start address
      end - module end address
      Returns:
      module descriptor
    • createUnknownModule

      public static Module createUnknownModule()
      Get the singleton unknown module descriptor.
      Returns:
      unknown module descriptor
    • isUnknown

      public boolean isUnknown()
      Determine whether this module is unknown.
      Returns:
      true if this module is unknown
    • getName

      public String getName()
      Get the module file name.
      Returns:
      module file name
    • getId

      public ModuleId getId()
      Get the module identifier.
      Returns:
      module identifier
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object