|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.jimple.toolkits.annotation.logic.Loop
public class Loop
A (natural) loop in Jimple. A back-edge (t,h) is a control-flog edge for which h dominates t. In this case h is the header and the loop consists of all statements s which reach t without passing through h.
Field Summary | |
---|---|
protected Stmt |
backJump
|
protected UnitGraph |
g
|
protected Stmt |
header
|
protected Collection<Stmt> |
loopExists
|
protected List<Stmt> |
loopStatements
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Stmt |
getBackJumpStmt()
Returns the statement that jumps back to the head, thereby constituing the loop. |
Stmt |
getHead()
|
Collection<Stmt> |
getLoopExits()
Returns all loop exists. |
List<Stmt> |
getLoopStatements()
|
int |
hashCode()
|
boolean |
hasSingleExit()
Returns true if this loop has a single exit statement. |
boolean |
loopsForever()
Returns true if this loop certainly loops forever, i.e. |
Collection<Stmt> |
targetsOfLoopExit(Stmt loopExit)
Computes all targets of the given loop exit, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Stmt header
protected final Stmt backJump
protected final List<Stmt> loopStatements
protected final UnitGraph g
protected Collection<Stmt> loopExists
Method Detail |
---|
public Stmt getHead()
public Stmt getBackJumpStmt()
public List<Stmt> getLoopStatements()
public Collection<Stmt> getLoopExits()
public Collection<Stmt> targetsOfLoopExit(Stmt loopExit)
public boolean loopsForever()
true
if this loop certainly loops forever, i.e. if it has not exit.
getLoopExits()
public boolean hasSingleExit()
true
if this loop has a single exit statement.
getLoopExits()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |