Package edu.umd.cs.findbugs.ba
Class RepositoryClassParser
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.RepositoryClassParser
-
public class RepositoryClassParser extends java.lang.ObjectA 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.bcel.classfile.JavaClassparse()Parse the class file into a JavaClass object.
-
-
-
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 filefileName- filename of the class file
-
RepositoryClassParser
public RepositoryClassParser(java.lang.String fileName) throws java.io.IOExceptionConstructor.- 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.IOExceptionConstructor.- Parameters:
zipFile- name of a zip file containing the classfileName- name of the zip entry within the class- Throws:
java.io.IOException- if the zip entry cannot be read
-
-