Class BasicBlock.InstructionReverseIterator

java.lang.Object
edu.umd.cs.findbugs.ba.BasicBlock.InstructionReverseIterator
All Implemented Interfaces:
Iterator<org.apache.bcel.generic.InstructionHandle>
Enclosing class:
BasicBlock

private static class BasicBlock.InstructionReverseIterator extends Object implements Iterator<org.apache.bcel.generic.InstructionHandle>
A reverse Iterator over the instructions in a basic block.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.bcel.generic.InstructionHandle
     
    private org.apache.bcel.generic.InstructionHandle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InstructionReverseIterator(org.apache.bcel.generic.InstructionHandle last, org.apache.bcel.generic.InstructionHandle first)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.apache.bcel.generic.InstructionHandle
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Field Details

    • next

      private org.apache.bcel.generic.InstructionHandle next
    • first

      private final org.apache.bcel.generic.InstructionHandle first
  • Constructor Details

    • InstructionReverseIterator

      public InstructionReverseIterator(org.apache.bcel.generic.InstructionHandle last, org.apache.bcel.generic.InstructionHandle first)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.apache.bcel.generic.InstructionHandle>
    • next

      public org.apache.bcel.generic.InstructionHandle next() throws NoSuchElementException
      Specified by:
      next in interface Iterator<org.apache.bcel.generic.InstructionHandle>
      Throws:
      NoSuchElementException
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<org.apache.bcel.generic.InstructionHandle>