Class NativeCallgraphBuilder
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.NativeCallgraphBuilder
- All Implemented Interfaces:
IAddressableDigraphBuilder
A builder of
callgraph (sub-routine caller/callee relationships) for native code units.-
Constructor Summary
ConstructorsConstructorDescriptionCreate a builder. -
Method Summary
Modifier and TypeMethodDescriptionBuild the directed graph model.getAddressForVertexId(int vertexId) Get the address associated with a vertex id.getVertexIdForAddress(String address) Get the vertex id associated with an address.
-
Constructor Details
-
NativeCallgraphBuilder
Create a builder.- Parameters:
unit- code unit
-
-
Method Details
-
buildModel
Description copied from interface:IAddressableDigraphBuilderBuild the directed graph model.- Specified by:
buildModelin interfaceIAddressableDigraphBuilder- Returns:
- the built graph
-
getAddressForVertexId
Description copied from interface:IAddressableDigraphBuilderGet the address associated with a vertex id.- Specified by:
getAddressForVertexIdin interfaceIAddressableDigraphBuilder- Parameters:
vertexId- vertex id- Returns:
- the associated address, or null if none exists
-
getVertexIdForAddress
Description copied from interface:IAddressableDigraphBuilderGet the vertex id associated with an address.- Specified by:
getVertexIdForAddressin interfaceIAddressableDigraphBuilder- Parameters:
address- vertex address- Returns:
- the associated vertex id, or null if none exists
-