Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)
        Constructor.
        Parameters:
        fileName - name of the class file
      • RepositoryClassParser

        public RepositoryClassParser​(java.lang.String zipFile,
                                     java.lang.String fileName)
        Constructor.
        Parameters:
        zipFile - name of a zip file containing the class
        fileName - name of the zip entry within the class
    • Method Detail

      • parse

        public org.apache.bcel.classfile.JavaClass parse()
                                                  throws java.io.IOException
        Parse the class file into a JavaClass object. If successful, the new JavaClass is entered into the Repository.
        Returns:
        the parsed JavaClass
        Throws:
        java.io.IOException - if the class cannot be parsed