S - the type of source objects used by diagnostics received
by this objectDiagnosticListener<S>public final class DiagnosticCollector<S> extends Object implements DiagnosticListener<S>
| 构造器 | 说明 |
|---|---|
DiagnosticCollector() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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.
|
public void report(Diagnostic<? extends S> diagnostic)
DiagnosticListenerreport 在接口中 DiagnosticListener<S>diagnostic - a diagnostic representing the problem that
was foundpublic List<Diagnostic<? extends S>> getDiagnostics()