| 
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.intermediate.operations.WorkList
public class WorkList
A worklist algorithm for performing flow analyses on a set of methods.
| Constructor Summary | |
|---|---|
WorkList(FlowAnalysis fa)
Creates a worklist for the given analysis.  | 
|
| Method Summary | |
|---|---|
 void | 
add(Statement s)
Adds the given statement to the worklist.  | 
 void | 
addAll(List<? extends Statement> statements)
Adds all specified statements to the worklist.  | 
 void | 
addAll(Method m)
Adds all statements from the body of the given method to the worklist.  | 
 void | 
iterate()
Iterate through the worklist until no more statements remain.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WorkList(FlowAnalysis fa)
fa - the flow analysis.| Method Detail | 
|---|
public void add(Statement s)
s - the statement.public void addAll(List<? extends Statement> statements)
public void addAll(Method m)
m - the method.public void iterate()
transfer
 method in the associated FlowAnalysis
 is called, which will in turn call the add
 method in the worklist for all statements affected by the change.
  | 
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||