Class CodeObjectUnitUtil
java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.CodeObjectUnitUtil
Utility routines for
ICodeObjectUnit.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ISymbolInformation>findAllSymbolsByName(ICodeObjectUnit unit, String name) Get all symbols with given namestatic List<ISymbolInformation>findAllSymbolsByRelativeAddress(ICodeObjectUnit unit, long rva) Get all symbols for given relative virtual address.static ISymbolInformationfindExportedSymbolByName(ICodeObjectUnit unit, String name) static ISymbolInformationfindImportedSymbolByName(ICodeObjectUnit unit, String name) static ISegmentInformationfindSectionByName(ICodeObjectUnit unit, String name) static ISegmentInformationfindSectionByRelativeAddress(ICodeObjectUnit unit, long rva) Find section covering the given relative virtual address.static ISegmentInformationfindSegmentByName(ICodeObjectUnit unit, String name) static ISegmentInformationfindSegmentByRelativeAddress(ICodeObjectUnit unit, long rva) Get segments covering the given relative virtual address.static ISymbolInformationfindSymbolByName(ICodeObjectUnit unit, String name) Get first symbol with given namestatic INativeCodeUnit<?>Get unique native code child if it exists, null otherwise.static booleanhasSymbolsAtRelativeAddress(ICodeObjectUnit unit, long rva)
-
Constructor Details
-
CodeObjectUnitUtil
public CodeObjectUnitUtil()
-
-
Method Details
-
findSymbolByName
Get first symbol with given name- Parameters:
unit-name-- Returns:
- first symbol with given name, null if none
-
findAllSymbolsByName
Get all symbols with given name- Parameters:
unit-name-- Returns:
- symbols with given name, empty list if none
-
findAllSymbolsByRelativeAddress
public static List<ISymbolInformation> findAllSymbolsByRelativeAddress(ICodeObjectUnit unit, long rva) Get all symbols for given relative virtual address.- Parameters:
unit-rva-- Returns:
- symbols for given relative virtual address, empty list if none
-
hasSymbolsAtRelativeAddress
-
findExportedSymbolByName
-
findImportedSymbolByName
-
findSectionByName
-
findSegmentByName
-
findSectionByRelativeAddress
Find section covering the given relative virtual address.- Parameters:
unit-rva-- Returns:
-
findSegmentByRelativeAddress
Get segments covering the given relative virtual address.- Parameters:
unit-rva-- Returns:
-
getUniqueNativeCodeUnitChild
Get unique native code child if it exists, null otherwise.
-