org.eclipse.xtext.resource.impl
Class ListBasedDiagnosticConsumer

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.ListBasedDiagnosticConsumer
All Implemented Interfaces:
IDiagnosticConsumer

public class ListBasedDiagnosticConsumer
extends java.lang.Object
implements IDiagnosticConsumer

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
protected static class ListBasedDiagnosticConsumer.Internal
           
 
Constructor Summary
ListBasedDiagnosticConsumer()
           
 
Method Summary
 void consume(Diagnostic diagnostic, Severity severity)
           
 java.util.List<Diagnostic> getResult(Severity severity)
           
 boolean hasConsumedDiagnostics(Severity severity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListBasedDiagnosticConsumer

public ListBasedDiagnosticConsumer()
Method Detail

consume

public void consume(Diagnostic diagnostic,
                    Severity severity)
Specified by:
consume in interface IDiagnosticConsumer
severity - the severity of the diagnostic. May neither be null or Severity.INFO.

hasConsumedDiagnostics

public boolean hasConsumedDiagnostics(Severity severity)
Specified by:
hasConsumedDiagnostics in interface IDiagnosticConsumer
Parameters:
severity - the severity of the diagnostic. May neither be null or Severity.INFO.

getResult

public java.util.List<Diagnostic> getResult(Severity severity)