Interface ICodeBaseIterator

  • All Known Implementing Classes:
    DelegatingCodeBaseIterator, JrtfsCodeBase.JrtfsCodeBaseIterator

    public interface ICodeBaseIterator
    Iterator over the resources in an IScannableCodeBase. Note that some of the methods can throw InterruptedException. This occurs when the analysis is canceled by interrupting the analysis thread.

    Note that the close() method must be called when done with an ICodeBaseIterator object.

    Author:
    David Hovemeyer
    • Method Detail

      • hasNext

        boolean hasNext()
                 throws java.lang.InterruptedException
        Return true if there is another resource to be scanned, false otherwise.
        Returns:
        true if there is another resource to be scanned, false otherwise
        Throws:
        java.lang.InterruptedException
      • next

        ICodeBaseEntry next()
                     throws java.lang.InterruptedException
        Get the ICodeBaseEntry representing the next resource in the code base.
        Returns:
        the ICodeBaseEntry representing the next resource in the code base
        Throws:
        java.lang.InterruptedException