Class RepositoryClassParser

java.lang.Object
edu.umd.cs.findbugs.ba.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 Details

    • 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
    • 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
  • Method Details

    • parse

      public org.apache.bcel.classfile.JavaClass parse() throws IOException
      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