FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba
Class RepositoryClassParser

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.RepositoryClassParser

public class RepositoryClassParser
extends java.lang.Object

A special version of ClassParser that automatically enters parsed classes into the Repository. This allows us to use the Repository to inspect the class hierarchy, based on the current class path.


Constructor Summary
RepositoryClassParser(java.io.InputStream inputStream, java.lang.String fileName)
          Constructor.
RepositoryClassParser(java.lang.String fileName)
          Constructor.
RepositoryClassParser(java.lang.String zipFile, java.lang.String fileName)
          Constructor.
 
Method Summary
 org.apache.bcel.classfile.JavaClass parse()
          Parse the class file into a JavaClass object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryClassParser

public RepositoryClassParser(java.io.InputStream inputStream,
                             java.lang.String fileName)
Constructor.

Parameters:
inputStream - the input stream from which to read the class file
fileName - filename of the class file

RepositoryClassParser

public RepositoryClassParser(java.lang.String fileName)
                      throws java.io.IOException
Constructor.

Parameters:
fileName - name of the class file
Throws:
java.io.IOException - if the file cannot be read

RepositoryClassParser

public RepositoryClassParser(java.lang.String zipFile,
                             java.lang.String fileName)
                      throws java.io.IOException
Constructor.

Parameters:
zipFile - name of a zip file containing the class
fileName - name of the zip entry within the class
Throws:
java.io.IOException - if the zip entry cannot be read
Method Detail

parse

public org.apache.bcel.classfile.JavaClass parse()
                                          throws java.io.IOException
Parse the class file into a JavaClass object. If succesful, the new JavaClass is entered into the Repository.

Returns:
the parsed JavaClass
Throws:
java.io.IOException - if the class cannot be parsed

FindBugs™ 1.3.9

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