Class DelegatingCodeBaseIterator

  • All Implemented Interfaces:
    ICodeBaseIterator

    public class DelegatingCodeBaseIterator
    extends java.lang.Object
    implements ICodeBaseIterator
    An implementation of ICodeBaseIterator that delegates to another codebase. In particular, the codebase entries it creates are DelegatingCodeBaseEntry objects.
    Author:
    David Hovemeyer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Return true if there is another resource to be scanned, false otherwise.
      ICodeBaseEntry next()
      Get the ICodeBaseEntry representing the next resource in the code base.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingCodeBaseIterator

        public DelegatingCodeBaseIterator​(ICodeBase frontEndCodeBase,
                                          IScannableCodeBase delegateCodeBase)
                                   throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
    • Method Detail

      • hasNext

        public boolean hasNext()
                        throws java.lang.InterruptedException
        Description copied from interface: ICodeBaseIterator
        Return true if there is another resource to be scanned, false otherwise.
        Specified by:
        hasNext in interface ICodeBaseIterator
        Returns:
        true if there is another resource to be scanned, false otherwise
        Throws:
        java.lang.InterruptedException
      • next

        public ICodeBaseEntry next()
                            throws java.lang.InterruptedException
        Description copied from interface: ICodeBaseIterator
        Get the ICodeBaseEntry representing the next resource in the code base.
        Specified by:
        next in interface ICodeBaseIterator
        Returns:
        the ICodeBaseEntry representing the next resource in the code base
        Throws:
        java.lang.InterruptedException