Package edu.umd.cs.findbugs.ba
Class CFG.LocationIterator
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.CFG.LocationIterator
-
- All Implemented Interfaces:
java.util.Iterator<Location>
- Enclosing class:
- CFG
private class CFG.LocationIterator extends java.lang.Object implements java.util.Iterator<Location>
An Iterator over the Locations in the CFG. Because of JSR subroutines, the same instruction may actually be part of multiple basic blocks (with different facts true in each, due to calling context). Locations specify both the instruction and the basic block.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<BasicBlock>
blockIter
private BasicBlock
curBlock
private java.util.Iterator<org.apache.bcel.generic.InstructionHandle>
instructionIter
private Location
next
-
Constructor Summary
Constructors Modifier Constructor Description private
LocationIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
findNext()
boolean
hasNext()
Location
next()
void
remove()
-
-
-
Field Detail
-
blockIter
private final java.util.Iterator<BasicBlock> blockIter
-
curBlock
private BasicBlock curBlock
-
instructionIter
private java.util.Iterator<org.apache.bcel.generic.InstructionHandle> instructionIter
-
next
private Location next
-
-