Class Func
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.codeless.Func
Definition of a function for codeless signatures; these can be known library functions or unknown
functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunccreateFrom(String rtnName, ModuleId moduleId) Create a function with a known module identifier.static FunccreateUnknownFrom(String rtnName) Create a function with an unknown module identifier.booleanGet the function entry point.Get the highest mapped function address.Get the lowest mapped function address.Get the module identifier.getName()Get the function name.Get the trampoline target function.inthashCode()booleanisMapped()Determine whether this function has mapped addresses.voidsetAddresses(long entryPoint, long lowestAddr, long highestAddr) Set mapped addresses for this function.voidsetTrampolineTarget(Func trampolineTarget) Set the trampoline target function.toString()
-
Method Details
-
createFrom
Create a function with a known module identifier.- Parameters:
rtnName- routine namemoduleId- module identifier- Returns:
- function descriptor
-
createUnknownFrom
Create a function with an unknown module identifier.- Parameters:
rtnName- routine name- Returns:
- function descriptor
-
getName
Get the function name.- Returns:
- function name
-
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 pointlowestAddr- lowest mapped address, inclusivehighestAddr- highest mapped address, inclusive
-
isMapped
public boolean isMapped()Determine whether this function has mapped addresses.- Returns:
- true if addresses are available
-
getTrampolineTarget
Get the trampoline target function.- Returns:
- trampoline target, or null
-
setTrampolineTarget
Set the trampoline target function.- Parameters:
trampolineTarget- trampoline target, or null
-
getEntryPoint
Get the function entry point.- Returns:
- entry point, or null if unknown
-
getLowestAddress
Get the lowest mapped function address.- Returns:
- lowest mapped address, or null if unknown
-
getHighestAddress
Get the highest mapped function address.- Returns:
- highest mapped address, or null if unknown
-
hashCode
public int hashCode() -
equals
-
toString
-