Class 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 Detail

      • blockIter

        private final java.util.Iterator<BasicBlock> blockIter
      • instructionIter

        private java.util.Iterator<org.apache.bcel.generic.InstructionHandle> instructionIter
    • Constructor Detail

      • LocationIterator

        private LocationIterator()
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Location>
      • next

        public Location next()
        Specified by:
        next in interface java.util.Iterator<Location>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Location>
      • findNext

        private void findNext()