Class CodeObjectUnitUtil
java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.CodeObjectUnitUtil
Utility routines for
ICodeObjectUnit
.-
Constructor Summary
-
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 ISymbolInformation
findExportedSymbolByName
(ICodeObjectUnit unit, String name) static ISymbolInformation
findImportedSymbolByName
(ICodeObjectUnit unit, String name) static ISegmentInformation
findSectionByName
(ICodeObjectUnit unit, String name) static ISegmentInformation
findSectionByRelativeAddress
(ICodeObjectUnit unit, long rva) Find section covering the given relative virtual address.static ISegmentInformation
findSegmentByName
(ICodeObjectUnit unit, String name) static ISegmentInformation
findSegmentByRelativeAddress
(ICodeObjectUnit unit, long rva) Get segments covering the given relative virtual address.static ISymbolInformation
findSymbolByName
(ICodeObjectUnit unit, String name) Get first symbol with given namestatic INativeCodeUnit<?>
Get unique native code child if it exists, null otherwise.static boolean
hasSymbolsAtRelativeAddress
(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.
-