public class PDGRegion extends java.lang.Object implements IRegion, java.lang.Iterable<PDGNode>
Constructor and Description |
---|
PDGRegion(int id,
java.util.List<PDGNode> nodes,
SootMethod m,
SootClass c,
UnitGraph ug,
PDGNode node) |
PDGRegion(int id,
SootMethod m,
SootClass c,
UnitGraph ug,
PDGNode node) |
PDGRegion(PDGNode node) |
Modifier and Type | Method and Description |
---|---|
void |
addChildRegion(IRegion chr) |
void |
addPDGNode(PDGNode node) |
java.lang.Object |
clone() |
java.util.List<Block> |
getBlocks() |
java.util.List<IRegion> |
getChildRegions() |
PDGNode |
getCorrespondingPDGNode() |
Unit |
getFirst() |
int |
getID() |
Unit |
getLast() |
java.util.List<PDGNode> |
getNodes() |
IRegion |
getParent() |
SootClass |
getSootClass() |
SootMethod |
getSootMethod() |
UnitGraph |
getUnitGraph() |
java.util.List<Unit> |
getUnits() |
java.util.List<Unit> |
getUnits(Unit from,
Unit to) |
java.util.Iterator<PDGNode> |
iterator()
return an iterator that know how to follow the control flow in a region.
|
boolean |
occursBefore(Unit u1,
Unit u2) |
void |
setParent(IRegion pr) |
java.lang.String |
toString() |
PDGNode |
unit2PDGNode(Unit u) |
public PDGRegion(int id, SootMethod m, SootClass c, UnitGraph ug, PDGNode node)
public PDGRegion(int id, java.util.List<PDGNode> nodes, SootMethod m, SootClass c, UnitGraph ug, PDGNode node)
public PDGRegion(PDGNode node)
public PDGNode getCorrespondingPDGNode()
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 java.util.List<PDGNode> getNodes()
public UnitGraph getUnitGraph()
getUnitGraph
in interface IRegion
public java.util.Iterator<PDGNode> iterator()
iterator
in interface java.lang.Iterable<PDGNode>
public PDGNode unit2PDGNode(Unit u)
a
- Statement within the regionpublic void addPDGNode(PDGNode node)
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