Package org.smtlib
Class Log.StandardListener
java.lang.Object
org.smtlib.Log.StandardListener
- All Implemented Interfaces:
Log.IListener
- Enclosing class:
Log
This class logs to the standard PrintStreams out and diag. The class is not static so that it
can see out and diag in the containing class; it needs to do this so that changes to out and diag
are reflected here as well.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe current indent prefix (seeLog.IListener.indent(java.lang.String)), used bylogError(IResponse.IError)below to align an error-location caret diagram with the prompt the user actually saw it after. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the indent prefix used when displaying error-location carets; typically the current prompt string.voidWrites the message to the diag streamvoidWrites the message to the 'out' PrintStream, adding line terminationvoidlogError(IResponse.IError result) Writes the offending text line, column location in that line, and the error message to the 'out' stream.voidWrites the message to the 'out' PrintStream, adding line terminationvoidWrites the given response to the out stream, adding line terminationvoidlogOutNoln(String msg) Writes the message to the 'out' PrintStream with no line termination
-
Field Details
-
prompt
The current indent prefix (seeLog.IListener.indent(java.lang.String)), used bylogError(IResponse.IError)below to align an error-location caret diagram with the prompt the user actually saw it after.
-
-
Constructor Details
-
StandardListener
public StandardListener()
-
-
Method Details
-
indent
Description copied from interface:Log.IListenerSets the indent prefix used when displaying error-location carets; typically the current prompt string.- Specified by:
indentin interfaceLog.IListener
-
logOut
Writes the message to the 'out' PrintStream, adding line termination- Specified by:
logOutin interfaceLog.IListener
-
logOutNoln
Writes the message to the 'out' PrintStream with no line termination- Specified by:
logOutNolnin interfaceLog.IListener
-
logOut
Writes the given response to the out stream, adding line termination- Specified by:
logOutin interfaceLog.IListener
-
logError
Writes the message to the 'out' PrintStream, adding line termination- Specified by:
logErrorin interfaceLog.IListener
-
logError
Writes the offending text line, column location in that line, and the error message to the 'out' stream.- Specified by:
logErrorin interfaceLog.IListener
-
logDiag
Writes the message to the diag stream- Specified by:
logDiagin interfaceLog.IListener
-