Package org.eclipse.xtext.resource.impl
Class ListBasedDiagnosticConsumer
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.ListBasedDiagnosticConsumer
-
- All Implemented Interfaces:
IDiagnosticConsumer
public class ListBasedDiagnosticConsumer extends java.lang.Object implements IDiagnosticConsumer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ListBasedDiagnosticConsumer.Internal
-
Constructor Summary
Constructors Constructor Description ListBasedDiagnosticConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume(Diagnostic diagnostic, Severity severity)
java.util.List<Diagnostic>
getResult(Severity severity)
boolean
hasConsumedDiagnostics(Severity severity)
-
-
-
Method Detail
-
consume
public void consume(Diagnostic diagnostic, Severity severity)
- Specified by:
consume
in interfaceIDiagnosticConsumer
severity
- the severity of the diagnostic. May neither benull
orSeverity.INFO
.
-
hasConsumedDiagnostics
public boolean hasConsumedDiagnostics(Severity severity)
- Specified by:
hasConsumedDiagnostics
in interfaceIDiagnosticConsumer
- Parameters:
severity
- the severity of the diagnostic. May neither benull
orSeverity.INFO
.
-
getResult
public java.util.List<Diagnostic> getResult(Severity severity)
-
-