edu.umd.cs.findbugs.classfile

Interface ICodeBaseIterator

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 Summary
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.

Method Detail

hasNext

public boolean hasNext()
Return true if there is another resource to be scanned, false otherwise.

Returns: true if there is another resource to be scanned, false otherwise

next

public ICodeBaseEntry next()
Get the ICodeBaseEntry representing the next resource in the code base.

Returns: the ICodeBaseEntry representing the next resource in the code base

Throws: InterruptedException

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.