protected static class Analysis.Worklist extends Object
| Modifier and Type | Class and Description | 
|---|---|
| class  | Analysis.Worklist.DFOComparatorComparator to allow priority queue to order blocks by their depth-first order. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected IdentityHashMap<Block,Integer> | depthFirstOrderMap all blocks in the CFG to their depth-first order. | 
| protected PriorityQueue<Block> | queueThe backing priority queue. | 
| Constructor and Description | 
|---|
| Worklist() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Block block) | 
| boolean | contains(Block block) | 
| boolean | isEmpty() | 
| @Nullable Block | poll() | 
| void | process(ControlFlowGraph cfg) | 
| String | toString() | 
protected final IdentityHashMap<Block,Integer> depthFirstOrder
protected final PriorityQueue<Block> queue
public void process(ControlFlowGraph cfg)
@EnsuresNonNullIf(result=false, expression="poll()") public boolean isEmpty()
AbstractCollection.isEmpty()public boolean contains(Block block)
public void add(Block block)
public @Nullable Block poll()
PriorityQueue.poll()