Class DelegatingCodeBaseIterator
- java.lang.Object
-
- edu.umd.cs.findbugs.classfile.impl.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 Summary
Fields Modifier and Type Field Description private ICodeBaseIteratordelegateCodeBaseIteratorprivate ICodeBasefrontEndCodeBase
-
Constructor Summary
Constructors Constructor Description DelegatingCodeBaseIterator(ICodeBase frontEndCodeBase, IScannableCodeBase delegateCodeBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Return true if there is another resource to be scanned, false otherwise.ICodeBaseEntrynext()Get the ICodeBaseEntry representing the next resource in the code base.
-
-
-
Field Detail
-
frontEndCodeBase
private final ICodeBase frontEndCodeBase
-
delegateCodeBaseIterator
private final ICodeBaseIterator delegateCodeBaseIterator
-
-
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.InterruptedExceptionDescription copied from interface:ICodeBaseIteratorReturn true if there is another resource to be scanned, false otherwise.- Specified by:
hasNextin interfaceICodeBaseIterator- 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:ICodeBaseIteratorGet the ICodeBaseEntry representing the next resource in the code base.- Specified by:
nextin interfaceICodeBaseIterator- Returns:
- the ICodeBaseEntry representing the next resource in the code base
- Throws:
java.lang.InterruptedException
-
-