edu.cmu.sei.aadl.modelsupport.errorreporting
Class QueuingParserErrorReporter
java.lang.Object
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractParseErrorReporter
edu.cmu.sei.aadl.modelsupport.errorreporting.QueuingParserErrorReporter
- All Implemented Interfaces:
- ErrorReporter, ParseErrorReporter
public final class QueuingParserErrorReporter
- extends AbstractParseErrorReporter
An implementation of
edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporter
that reports
errors by storing them in a queue that can be retreived by calling
getErrors()
.
Messages are stored as QueuingParserErrorReporter.Message
objects.
- Author:
- aarong
Field Summary |
static java.lang.String |
ERROR
|
static edu.cmu.sei.aadl.modelsupport.errorreporting.QueuingParserErrorReporter.Factory |
factory
Singleton factory reference. |
static java.lang.String |
INFO
|
static java.lang.String |
WARNING
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
INFO
public static final java.lang.String INFO
- See Also:
- Constant Field Values
factory
public static final edu.cmu.sei.aadl.modelsupport.errorreporting.QueuingParserErrorReporter.Factory factory
- Singleton factory reference.
QueuingParserErrorReporter
public QueuingParserErrorReporter()
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
getErrors
public java.util.List<QueuingParserErrorReporter.Message> getErrors()
- Get the errors.
- Returns:
- A List of
QueuingParserErrorReporter.Message
objects.