java.lang.Objectjavax.tools.DiagnosticCollector<S>
S
- the type of source objects used by diagnostics received
by this objectpublic final class DiagnosticCollector<S>
Provides an easy way to collect diagnostics in a list.
Constructor Summary | |
---|---|
DiagnosticCollector()
|
Method Summary | |
---|---|
List<Diagnostic<? extends S>> |
getDiagnostics()
Gets a list view of diagnostics collected by this object. |
void |
report(Diagnostic<? extends S> diagnostic)
Invoked when a problem is found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagnosticCollector()
Method Detail |
---|
public void report(Diagnostic<? extends S> diagnostic)
DiagnosticListener
report
in interface DiagnosticListener<S>
diagnostic
- a diagnostic representing the problem that
was foundpublic List<Diagnostic<? extends S>> getDiagnostics()