edu.cmu.sei.aadl.modelsupport.errorreporting
Class NullParseErrorReporter

java.lang.Object
  extended by edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter
      extended by edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractParseErrorReporter
          extended by edu.cmu.sei.aadl.modelsupport.errorreporting.NullParseErrorReporter
All Implemented Interfaces:
ErrorReporter, ParseErrorReporter

public final class NullParseErrorReporter
extends AbstractParseErrorReporter

An implementation of edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporter that silently discards all reported errors.

Contains singleton references to a canonical null reporter and to a factory object.

Author:
aarong

Field Summary
static edu.cmu.sei.aadl.modelsupport.errorreporting.NullParseErrorReporter.Factory factory
          Singleton reference to the factory.
static NullParseErrorReporter prototype
          Singleton reference to the unique instance.
 
Method Summary
protected  void deleteMessagesImpl()
           
protected  void errorImpl(java.lang.String filename, int line, java.lang.String message)
           
protected  void infoImpl(java.lang.String filename, int line, java.lang.String message)
           
protected  void warningImpl(java.lang.String filename, int line, java.lang.String message)
           
 
Methods inherited from class edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractParseErrorReporter
error, error, info, info, warning, warning
 
Methods inherited from class edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings, incError, incInfo, incWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.sei.aadl.modelsupport.errorreporting.ErrorReporter
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
 

Field Detail

prototype

public static final NullParseErrorReporter prototype
Singleton reference to the unique instance.


factory

public static final edu.cmu.sei.aadl.modelsupport.errorreporting.NullParseErrorReporter.Factory factory
Singleton reference to the factory.

Method Detail

errorImpl

protected void errorImpl(java.lang.String filename,
                         int line,
                         java.lang.String message)
Specified by:
errorImpl in class AbstractParseErrorReporter

warningImpl

protected void warningImpl(java.lang.String filename,
                           int line,
                           java.lang.String message)
Specified by:
warningImpl in class AbstractParseErrorReporter

infoImpl

protected void infoImpl(java.lang.String filename,
                        int line,
                        java.lang.String message)
Specified by:
infoImpl in class AbstractParseErrorReporter

deleteMessagesImpl

protected void deleteMessagesImpl()
Specified by:
deleteMessagesImpl in class AbstractErrorReporter