public class ListBasedDiagnosticConsumer extends java.lang.Object implements IDiagnosticConsumer
Modifier and Type | Class and Description |
---|---|
protected static class |
ListBasedDiagnosticConsumer.Internal |
Constructor and Description |
---|
ListBasedDiagnosticConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
consume(Diagnostic diagnostic,
Severity severity) |
java.util.List<Diagnostic> |
getResult(Severity severity) |
boolean |
hasConsumedDiagnostics(Severity severity) |
public void consume(Diagnostic diagnostic, Severity severity)
consume
in interface IDiagnosticConsumer
severity
- the severity of the diagnostic. May neither be null
or Severity.INFO
.public boolean hasConsumedDiagnostics(Severity severity)
hasConsumedDiagnostics
in interface IDiagnosticConsumer
severity
- the severity of the diagnostic. May neither be null
or Severity.INFO
.public java.util.List<Diagnostic> getResult(Severity severity)