Package edu.umd.cs.findbugs.ba
Class RepositoryClassParser
java.lang.Object
edu.umd.cs.findbugs.ba.RepositoryClassParser
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
ConstructorDescriptionRepositoryClassParser
(InputStream inputStream, String fileName) Constructor.RepositoryClassParser
(String fileName) Constructor.RepositoryClassParser
(String zipFile, String fileName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.bcel.classfile.JavaClass
parse()
Parse the class file into a JavaClass object.
-
Constructor Details
-
RepositoryClassParser
Constructor.- Parameters:
inputStream
- the input stream from which to read the class filefileName
- filename of the class file
-
RepositoryClassParser
Constructor.- Parameters:
fileName
- name of the class file
-
RepositoryClassParser
Constructor.- Parameters:
zipFile
- name of a zip file containing the classfileName
- name of the zip entry within the class
-
-
Method Details
-
parse
Parse the class file into a JavaClass object. If successful, the new JavaClass is entered into the Repository.- Returns:
- the parsed JavaClass
- Throws:
IOException
- if the class cannot be parsed
-