public final class WriterParseErrorReporter extends AbstractParseErrorReporter
edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporter
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.WriterParseErrorReporter.Factory
that implements a factory.
Modifier and Type | Class and Description |
---|---|
static class |
WriterParseErrorReporter.Factory |
Modifier and Type | Field and Description |
---|---|
static WriterParseErrorReporter |
SYSTEM_ERR
Singleton reference to an error reporter that sends the messages to
System.err . |
static WriterParseErrorReporter |
SYSTEM_OUT
Singleton reference to an error reporter that sends the messages to
System.out . |
static WriterParseErrorReporter.Factory |
SYSTEM_OUT_FACTORY
Singleton reference to an factory that creates reporters that send the
messages to
System.out . |
Constructor and Description |
---|
WriterParseErrorReporter(java.io.Writer writer)
Create a new error reporter that writes the error messages to the given
Writer object. |
error, error, info, info, warning, warning
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
public static final WriterParseErrorReporter SYSTEM_OUT
System.out
.public static final WriterParseErrorReporter SYSTEM_ERR
System.err
.public static final WriterParseErrorReporter.Factory SYSTEM_OUT_FACTORY
System.out
.public WriterParseErrorReporter(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
.