public class Region extends Object implements IRegion
Constructor and Description |
---|
Region(int id,
List<Block> blocks,
SootMethod m,
SootClass c,
UnitGraph ug) |
Region(int id,
SootMethod m,
SootClass c,
UnitGraph ug) |
Modifier and Type | Method and Description |
---|---|
void |
add(Block b) |
void |
add2Back(Block b) |
void |
addChildRegion(IRegion chr) |
Object |
clone() |
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 |
remove(Block b) |
void |
setParent(IRegion pr) |
String |
toString() |
public Region(int id, SootMethod m, SootClass c, UnitGraph ug)
public Region(int id, List<Block> blocks, SootMethod m, SootClass c, UnitGraph ug)
public SootMethod getSootMethod()
getSootMethod
in interface IRegion
public SootClass getSootClass()
getSootClass
in interface IRegion
public UnitGraph getUnitGraph()
getUnitGraph
in interface IRegion
public void add(Block b)
public void add2Back(Block b)
public void remove(Block b)
public boolean occursBefore(Unit u1, Unit u2)
occursBefore
in interface IRegion
public void addChildRegion(IRegion chr)
addChildRegion
in interface IRegion
public List<IRegion> getChildRegions()
getChildRegions
in interface IRegion