|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiagnosticOutputI
Diagnostic message (informational, warning, and error messages) output stream.
This interface is used to implement any kind of output stream that is capable of writing lines of text strings. Such a stream is used to display informational, warning, and error diagnostic messages by such classes as lexical analyzers (lexers) and parsers.
DiagnosticOutputDfl
,
SuspendablePrintWriter
,
SuspendableWriterI
Field Summary | |
---|---|
static java.lang.String |
REV
Revision information. |
Method Summary | |
---|---|
void |
printMessage(java.lang.String fname,
int line,
java.lang.String msg)
Writes a diagnostic message to the output stream. |
Field Detail |
---|
static final java.lang.String REV
Method Detail |
---|
void printMessage(java.lang.String fname, int line, java.lang.String msg)
Note that this method does not throw any checked exceptions (such as
IOException
).
fname
- An optional source filename for the diagnostic message.
If it is not null and not empty, it and a colon (":")
immediately following it are written.line
- An optional source line number for the diagnostic message.
If it is not zero, it and and a colon (":") immediately
following it are written.msg
- The message text.
This typically contains a prefix indicating the severity of the message,
such as "warning:" or "error:".
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |