public class

RuntimeProjectUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.RuntimeProjectUtil

Class Overview

A collection of utility methods to navigate and act on JEB projects.

Summary

Public Constructors
RuntimeProjectUtil()
Public Methods
static List<IUnit> filterUnits(IRuntimeProject prj, IUnitFilter filter)
Find the units in the project that pass a test provided by the user-defined filter object.
static List<IUnitContribution> findUnitContributions(IRuntimeProject prj, IUnit target)
Retrieve a list of contributions (defined within a given project) for a target unit.
static <T extends IUnit> List<T> findUnitsByType(IRuntimeProject prj, Class<T> c, boolean strict)
Find all units of a project that are of the specified type.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RuntimeProjectUtil ()

Public Methods

public static List<IUnit> filterUnits (IRuntimeProject prj, IUnitFilter filter)

Find the units in the project that pass a test provided by the user-defined filter object.

Parameters
prj a project
filter a filter, null means no filter (ie, all units will be returned)
Returns
  • the list of units

public static List<IUnitContribution> findUnitContributions (IRuntimeProject prj, IUnit target)

Retrieve a list of contributions (defined within a given project) for a target unit.

Parameters
prj a project
target the target unit
Returns
  • a list of contributions, potentially empty

public static List<T> findUnitsByType (IRuntimeProject prj, Class<T> c, boolean strict)

Find all units of a project that are of the specified type.

Parameters
prj a project
c a type of unit, or null to indicate all units
strict if true, only units of class `c` will be returned; else, units of type `c` or any type derived from `c` will be returned
Returns
  • the list of units