edu.umd.cs.findbugs.ba

Class RepositoryClassParser

public class RepositoryClassParser extends 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(InputStream inputStream, String fileName)
Constructor.
RepositoryClassParser(String fileName)
Constructor.
RepositoryClassParser(String zipFile, String fileName)
Constructor.
Method Summary
JavaClassparse()
Parse the class file into a JavaClass object.

Constructor Detail

RepositoryClassParser

public RepositoryClassParser(InputStream inputStream, String fileName)
Constructor.

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

RepositoryClassParser

public RepositoryClassParser(String fileName)
Constructor.

Parameters: fileName name of the class file

Throws: IOException if the file cannot be read

RepositoryClassParser

public RepositoryClassParser(String zipFile, String fileName)
Constructor.

Parameters: zipFile name of a zip file containing the class fileName name of the zip entry within the class

Throws: IOException if the zip entry cannot be read

Method Detail

parse

public JavaClass parse()
Parse the class file into a JavaClass object. If succesful, the new JavaClass is entered into the Repository.

Returns: the parsed JavaClass

Throws: IOException if the class cannot be parsed

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