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.
    • Field Detail

      • frontEndCodeBase

        private final ICodeBase frontEndCodeBase
    • 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