edu.umd.cs.findbugs
Class FindBugs.SingleClassProducer

java.lang.Object
  extended by edu.umd.cs.findbugs.FindBugs.SingleClassProducer
All Implemented Interfaces:
FindBugs.ClassProducer
Enclosing class:
FindBugs

private class FindBugs.SingleClassProducer
extends java.lang.Object
implements FindBugs.ClassProducer

ClassProducer for single class files.


Field Summary
private  java.net.URL url
           
 
Constructor Summary
FindBugs.SingleClassProducer(java.net.URL url)
          Constructor.
 
Method Summary
 void close()
          Close any internal files or streams.
 boolean containsSourceFiles()
          Did this class producer scan any Java source files?
 org.apache.bcel.classfile.JavaClass getNextClass()
          Get the next class to analyze.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

private java.net.URL url
Constructor Detail

FindBugs.SingleClassProducer

public FindBugs.SingleClassProducer(java.net.URL url)
Constructor.

Parameters:
url - the single class file to be analyzed
Method Detail

getNextClass

public org.apache.bcel.classfile.JavaClass getNextClass()
                                                 throws java.io.IOException,
                                                        java.lang.InterruptedException
Description copied from interface: FindBugs.ClassProducer
Get the next class to analyze.

Specified by:
getNextClass in interface FindBugs.ClassProducer
Returns:
the class, or null of there are no more classes for this ClassProducer
Throws:
java.io.IOException - if an IOException occurs
java.lang.InterruptedException - if the thread is interrupted

containsSourceFiles

public boolean containsSourceFiles()
Description copied from interface: FindBugs.ClassProducer
Did this class producer scan any Java source files?

Specified by:
containsSourceFiles in interface FindBugs.ClassProducer

close

public void close()
Description copied from interface: FindBugs.ClassProducer
Close any internal files or streams.

Specified by:
close in interface FindBugs.ClassProducer