public final class WriterAnalysisErrorReporter extends AbstractAnalysisErrorReporter
edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporter
that outputs
the messages to a Java Writer
. Includes a
prototype reference to a factory that creates
reporters that print to the system out
.
The class defines a nested class
edu.cmu.sei.aadl.model.pluginsupport.WriterAnalysisErrorReporter.Factory
that implements a factory.
Modifier and Type | Class and Description |
---|---|
static class |
WriterAnalysisErrorReporter.Factory |
Modifier and Type | Field and Description |
---|---|
static WriterAnalysisErrorReporter.Factory |
SYSTEM_ERR_FACTORY
Singleton reference to a factory that creates reporters that send the
messages to
System.err . |
static WriterAnalysisErrorReporter.Factory |
SYSTEM_OUT_FACTORY
Singleton reference to a factory that creates reporters that send the
messages to
System.out . |
Constructor and Description |
---|
WriterAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc,
java.io.Writer writer)
Create a new error reporter that writes the error messages to the given
Writer object. |
error, info, warning
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
public static final WriterAnalysisErrorReporter.Factory SYSTEM_OUT_FACTORY
System.out
.public static final WriterAnalysisErrorReporter.Factory SYSTEM_ERR_FACTORY
System.err
.public WriterAnalysisErrorReporter(org.eclipse.emf.ecore.resource.Resource rsrc, java.io.Writer writer)
Writer
object. The caller is responsible for providing any
buffering, i.e., the writer will be used as provided and is not further
wrapped.writer
- The writer to use.java.lang.IllegalArgumentException
- Thrown if writer
is null
.