S
- 此对象接收的诊断使用的源对象的类型
public final class DiagnosticCollector<S> extends Object implements DiagnosticListener<S>
Constructor and Description |
---|
DiagnosticCollector() |
Modifier and Type | Method and Description |
---|---|
List<Diagnostic<? extends S>> |
getDiagnostics()
获取此对象收集的诊断的列表视图。
|
void |
report(Diagnostic<? extends S> diagnostic)
当发现问题时调用。
|
public void report(Diagnostic<? extends S> diagnostic)
DiagnosticListener
复制
report
在界面
DiagnosticListener<S>
diagnostic
- 代表发现问题的诊断
public List<Diagnostic<? extends S>> getDiagnostics()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.