soot.toolkits.graph.pdg
Interface IRegion

All Known Implementing Classes:
PDGRegion, Region

public interface IRegion

This interface represents a region of control dependence in the control flow graph. There are different kinds of region representations that may slightly differ in definition or implementation; here is an interface that is expected to be supported by all these different regions.

Author:
Hossein Sadat-Mohtasham Jan 2009

Method Summary
 void addChildRegion(IRegion chr)
           
 List<Block> getBlocks()
           
 List<IRegion> getChildRegions()
           
 Unit getFirst()
           
 int getID()
           
 Unit getLast()
           
 IRegion getParent()
           
 SootClass getSootClass()
           
 SootMethod getSootMethod()
           
 UnitGraph getUnitGraph()
           
 List<Unit> getUnits()
           
 List<Unit> getUnits(Unit from, Unit to)
           
 boolean occursBefore(Unit u1, Unit u2)
           
 void setParent(IRegion pr)
           
 

Method Detail

getSootMethod

SootMethod getSootMethod()

getSootClass

SootClass getSootClass()

getUnitGraph

UnitGraph getUnitGraph()

getUnits

List<Unit> getUnits()

getUnits

List<Unit> getUnits(Unit from,
                    Unit to)

getBlocks

List<Block> getBlocks()

getLast

Unit getLast()

getFirst

Unit getFirst()

getID

int getID()

occursBefore

boolean occursBefore(Unit u1,
                     Unit u2)

setParent

void setParent(IRegion pr)

getParent

IRegion getParent()

addChildRegion

void addChildRegion(IRegion chr)

getChildRegions

List<IRegion> getChildRegions()