public class CategorizingDiagnosticCollector extends Object
DiagnosticCollector
, this class categorizes the diagnostic messages by
kind.Constructor and Description |
---|
CategorizingDiagnosticCollector()
Constructs a new collector.
|
Modifier and Type | Method and Description |
---|---|
List<Diagnostic<JavaFileObject>> |
getAllDiagnostics()
Gets a view of all diagnostics collected so far.
|
List<Diagnostic<JavaFileObject>> |
getDiagnostics(Diagnostic.Kind kind)
Gets a view of diagnostics of a given kind collected so far.
|
boolean |
isVerbose() |
void |
reset() |
void |
setVerbose(boolean verbose) |
public CategorizingDiagnosticCollector()
stderr
.public void setVerbose(boolean verbose)
public boolean isVerbose()
public void reset()
public List<Diagnostic<JavaFileObject>> getAllDiagnostics()
public List<Diagnostic<JavaFileObject>> getDiagnostics(Diagnostic.Kind kind)
kind
- the kind of diagnostic to return