Class JavaDiagnosticReader

    • Method Detail

      • readJavaSourceFiles

        public static java.util.List<TestDiagnostic> readJavaSourceFiles​(java.lang.Iterable<? extends java.lang.Object> files)
        Returns all the diagnostics in any of the Java source files.
        Parameters:
        files - the Java files to read; each is a File or a JavaFileObject
        Returns:
        the TestDiagnostics from the input file
      • readDiagnosticFiles

        public static java.util.List<TestDiagnostic> readDiagnosticFiles​(java.lang.Iterable<? extends java.io.File> files)
        Reads diagnostics line-by-line from the input diagnostic files.
        Parameters:
        files - a set of diagnostic files
        Returns:
        the TestDiagnosticLines from the input files
      • hasNext

        @Pure
        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<TestDiagnosticLine>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<TestDiagnosticLine>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable