## Uses of Interface
javax.tools.Diagnostic

Packages that use Diagnostic
com.sun.source.doctree: Provides interfaces to represent documentation comments as abstract syntax trees (AST).
com.sun.source.util: Provides utilities for operations on abstract syntax trees (AST).
javax.tools: Provides interfaces for tools which can be invoked from a program, for example, compilers.

### Uses of Diagnostic in com.sun.source.doctree

Methods in com.sun.source.doctree that return Diagnostic
`Diagnostic<JavaFileObject>` ErroneousTree.`getDiagnostic()` Returns a diagnostic object giving details about the reason the body text is in error.

### Uses of Diagnostic in com.sun.source.util

Methods in com.sun.source.util with parameters of type Diagnostic
`ErroneousTree` DocTreeFactory.`newErroneousTree​(String text, Diagnostic<JavaFileObject> diag)` Create a new `ErroneousTree` object, to represent some unparseable input.

### Uses of Diagnostic in javax.tools

Methods in javax.tools that return types with arguments of type Diagnostic
`List<Diagnostic<? extends S>>` DiagnosticCollector.`getDiagnostics()` Returns a list view of diagnostics collected by this object.

Methods in javax.tools with parameters of type Diagnostic
`void` DiagnosticListener.`report​(Diagnostic<? extends S> diagnostic)` Invoked when a problem is found.