public class JavaDiagnosticReader extends Object implements Iterator<TestDiagnosticLine>, Closeable
TestDiagnosticLine. However, clients should call the static methods: readJavaSourceFiles(java.lang.Iterable<? extends java.lang.Object>) reads diagnostics from multiple Java source files, and readDiagnosticFiles(java.lang.Iterable<? extends java.io.File>) reads diagnostics from multiple "diagnostic files".| Modifier and Type | Method and Description |
|---|---|
protected void |
advance() |
void |
close() |
boolean |
hasNext() |
TestDiagnosticLine |
next() |
static List<TestDiagnostic> |
readDiagnosticFiles(Iterable<? extends File> files)
Reads diagnostics line-by-line from the input diagnostic files.
|
static List<TestDiagnostic> |
readJavaSourceFiles(Iterable<? extends Object> files)
Returns all the diagnostics in any of the Java source files.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static List<TestDiagnostic> readJavaSourceFiles(Iterable<? extends Object> files)
files - the Java files to read; each is a File or a JavaFileObjectpublic static List<TestDiagnostic> readDiagnosticFiles(Iterable<? extends File> files)
files - a set of diagnostic files@Pure public boolean hasNext()
hasNext in interface Iterator<TestDiagnosticLine>public void remove()
remove in interface Iterator<TestDiagnosticLine>public TestDiagnosticLine next()
next in interface Iterator<TestDiagnosticLine>@RequiresNonNull(value="reader") protected void advance(@UnknownInitialization JavaDiagnosticReader this) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseable