Class Javac

    • Field Detail

      • log

        protected static org.apache.commons.logging.Log log
    • Constructor Detail

      • Javac

        public Javac()
    • Method Detail

      • compile

        public boolean compile()
                        throws java.io.IOException
        Compile a source file yielding a loadable class file.
        Throws:
        java.io.IOException - If an error occurs during compilation
      • parseStream

        protected java.util.List parseStream​(java.io.BufferedReader input)
                                      throws java.io.IOException
        Parse the compiler error stream to produce a list of CompilerErrors
        Specified by:
        parseStream in class AbstractCompiler
        Parameters:
        input - The error stream
        Returns:
        The list of compiler error messages
        Throws:
        java.io.IOException - If an error occurs during message collection
      • parseModernStream

        protected java.util.List parseModernStream​(java.io.BufferedReader input)
                                            throws java.io.IOException
        Parse the compiler error stream to produce a list of CompilerErrors
        Parameters:
        input - The error stream
        Returns:
        The list of compiler error messages
        Throws:
        java.io.IOException - If an error occurs during message collection
      • parseClassicStream

        protected java.util.List parseClassicStream​(java.io.BufferedReader input)
                                             throws java.io.IOException
        Parse the compiler error stream to produce a list of CompilerErrors
        Parameters:
        input - The error stream
        Returns:
        The list of compiler error messages
        Throws:
        java.io.IOException - If an error occurs during message collection
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object