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 ICodeBaseIterator
delegateCodeBaseIterator
private ICodeBase
frontEndCodeBase
-
Constructor Summary
Constructors Constructor Description DelegatingCodeBaseIterator(ICodeBase frontEndCodeBase, IScannableCodeBase delegateCodeBase)
-
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.
-
-
-
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.InterruptedException
Description copied from interface:ICodeBaseIterator
Return true if there is another resource to be scanned, false otherwise.- Specified by:
hasNext
in 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:ICodeBaseIterator
Get the ICodeBaseEntry representing the next resource in the code base.- Specified by:
next
in interfaceICodeBaseIterator
- Returns:
- the ICodeBaseEntry representing the next resource in the code base
- Throws:
java.lang.InterruptedException
-
-