public class Region extends java.lang.Object implements IRegion
Constructor and Description |
---|
Region(int id,
java.util.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) |
java.lang.Object |
clone() |
java.util.List<Block> |
getBlocks() |
java.util.List<IRegion> |
getChildRegions() |
Unit |
getFirst() |
int |
getID() |
Unit |
getLast() |
IRegion |
getParent() |
SootClass |
getSootClass() |
SootMethod |
getSootMethod() |
UnitGraph |
getUnitGraph() |
java.util.List<Unit> |
getUnits() |
java.util.List<Unit> |
getUnits(Unit from,
Unit to) |
boolean |
occursBefore(Unit u1,
Unit u2) |
void |
remove(Block b) |
void |
setParent(IRegion pr) |
java.lang.String |
toString() |
public Region(int id, SootMethod m, SootClass c, UnitGraph ug)
public Region(int id, java.util.List<Block> blocks, SootMethod m, SootClass c, UnitGraph ug)
public java.lang.Object clone()
clone
in class java.lang.Object
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 java.util.List<IRegion> getChildRegions()
getChildRegions
in interface IRegion
public java.lang.String toString()
toString
in class java.lang.Object