java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.codeless.Func

@Ser public class Func extends Object
Definition of a function for codeless signatures; these can be known library functions or unknown functions.
  • Method Details

    • createFrom

      public static Func createFrom(String rtnName, ModuleId moduleId)
      Create a function with a known module identifier.
      Parameters:
      rtnName - routine name
      moduleId - module identifier
      Returns:
      function descriptor
    • createUnknownFrom

      public static Func createUnknownFrom(String rtnName)
      Create a function with an unknown module identifier.
      Parameters:
      rtnName - routine name
      Returns:
      function descriptor
    • getName

      public String getName()
      Get the function name.
      Returns:
      function name
    • getModuleId

      public ModuleId getModuleId()
      Get the module identifier.
      Returns:
      module identifier
    • setAddresses

      public void setAddresses(long entryPoint, long lowestAddr, long highestAddr)
      Set mapped addresses for this function.
      Parameters:
      entryPoint - function entry point
      lowestAddr - lowest mapped address, inclusive
      highestAddr - highest mapped address, inclusive
    • isMapped

      public boolean isMapped()
      Determine whether this function has mapped addresses.
      Returns:
      true if addresses are available
    • getTrampolineTarget

      public Func getTrampolineTarget()
      Get the trampoline target function.
      Returns:
      trampoline target, or null
    • setTrampolineTarget

      public void setTrampolineTarget(Func trampolineTarget)
      Set the trampoline target function.
      Parameters:
      trampolineTarget - trampoline target, or null
    • getEntryPoint

      public Long getEntryPoint()
      Get the function entry point.
      Returns:
      entry point, or null if unknown
    • getLowestAddress

      public Long getLowestAddress()
      Get the lowest mapped function address.
      Returns:
      lowest mapped address, or null if unknown
    • getHighestAddress

      public Long getHighestAddress()
      Get the highest mapped function address.
      Returns:
      highest mapped address, or null if unknown
    • 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