public class

CodeObjectUnitUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.codeobject.CodeObjectUnitUtil

Class Overview

Utility routines for ICodeObjectUnit.

Summary

Public Constructors
CodeObjectUnitUtil()
Public Methods
static List<ISymbolInformation> findAllSymbolsByName(ICodeObjectUnit unit, String name)
Get all symbols with given name
static 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 name
static INativeCodeUnit<?> getUniqueNativeCodeUnitChild(ICodeObjectUnit unit)
Get unique native code child if it exists, null otherwise.
static boolean hasSymbolsAtRelativeAddress(ICodeObjectUnit unit, long rva)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CodeObjectUnitUtil ()

Public Methods

public static List<ISymbolInformation> findAllSymbolsByName (ICodeObjectUnit unit, String name)

Get all symbols with given name

Returns
  • symbols with given name, empty list if none

public static List<ISymbolInformation> findAllSymbolsByRelativeAddress (ICodeObjectUnit unit, long rva)

Get all symbols for given relative virtual address.

Returns
  • symbols for given relative virtual address, empty list if none

public static ISymbolInformation findExportedSymbolByName (ICodeObjectUnit unit, String name)

public static ISymbolInformation findImportedSymbolByName (ICodeObjectUnit unit, String name)

public static ISegmentInformation findSectionByName (ICodeObjectUnit unit, String name)

public static ISegmentInformation findSectionByRelativeAddress (ICodeObjectUnit unit, long rva)

Find section covering the given relative virtual address.

public static ISegmentInformation findSegmentByName (ICodeObjectUnit unit, String name)

public static ISegmentInformation findSegmentByRelativeAddress (ICodeObjectUnit unit, long rva)

Get segments covering the given relative virtual address.

public static ISymbolInformation findSymbolByName (ICodeObjectUnit unit, String name)

Get first symbol with given name

Returns
  • first symbol with given name, null if none

public static INativeCodeUnit<?> getUniqueNativeCodeUnitChild (ICodeObjectUnit unit)

Get unique native code child if it exists, null otherwise.

public static boolean hasSymbolsAtRelativeAddress (ICodeObjectUnit unit, long rva)