Class CompileUtil


  • class CompileUtil
    extends Object
    Utilities for compiler classes.
    • Constructor Detail

      • CompileUtil

        CompileUtil()
    • Method Detail

      • toURI

        static URI toURI​(String pathString)
        Converts the path string to a URI for use by the file manager of the compiler.
        Parameters:
        pathString - the path to a file as a string
        Returns:
        the URI for the path
      • printDiagnostics

        public static void printDiagnostics​(PrintWriter out,
                                            List<Diagnostic<? extends JavaFileObject>> diagnostics)
        Prints the compiler diagnostics to the writer.
        Parameters:
        out - the print writer
        diagnostics - the compiler diagnostics