Interface CompilationUnit

    • Method Detail

      • getSource

        Reader getSource()
                  throws IOException
        Return a reader for the contents. The compiler will close this reader in all cases!
        Returns:
        The reader.
        Throws:
        IOException - If the source can't be read.
      • getMainClassName

        String getMainClassName()
        Returns the name of the top level public type. This name includes the package.
        Returns:
        the name of the top level public type.
      • getLastModified

        long getLastModified()
        Return the last modified for the compilation unit.
        Returns:
        The last modified information or -1 if the information can't be detected.