public class LoggableOp
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
_verbose |
Constructor and Description |
---|
LoggableOp() |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCount()
Get the number of errors generated during the most
recent operation.
|
java.io.PrintStream |
getErrorStream()
Get the stream to which errors are printed.
|
int |
getLineNumber() |
int |
getWarningCount()
Get the number of warnings generated during the most
recent parse.
|
void |
indent()
Increment the indentation counter.
|
boolean |
isVerbose()
Test if we are in verbose mode
|
void |
logError(java.lang.String msg)
Print an error message to the error stream.
|
void |
logError(java.lang.String id,
java.lang.String msg)
Print an error message to the error stream.
|
void |
logError(java.lang.String id,
java.lang.String msg,
java.lang.String detail)
Print an error message to the error stream.
|
void |
logInfo(java.lang.String msg)
If in verbose mode, print an info message to the error stream,
otherwise do nothing.
|
void |
logInfo(java.lang.String id,
java.lang.String msg)
If in verbose mode, print an info message to the error stream,
otherwise do nothing.
|
void |
logWarning(java.lang.String msg)
Print an warning message to the error stream.
|
void |
logWarning(java.lang.String id,
java.lang.String msg)
Print an warning message to the error stream.
|
void |
logWarning(java.lang.String id,
java.lang.String msg,
java.lang.String detail)
Print an warning message to the error stream.
|
void |
reset()
Reset the error counters.
|
void |
setErrorStream(java.io.PrintStream err)
Set the stream to which errors are printed.
|
void |
setVerbose(boolean v)
Set the verbose mode flag.
|
void |
unindent()
Decrement the indentation counter.
|
public int getErrorCount()
public java.io.PrintStream getErrorStream()
public int getWarningCount()
public int getLineNumber()
public void logError(java.lang.String msg)
public void logError(java.lang.String id, java.lang.String msg)
public void logError(java.lang.String id, java.lang.String msg, java.lang.String detail)
public void logInfo(java.lang.String msg)
public void logInfo(java.lang.String id, java.lang.String msg)
public void indent()
public final boolean isVerbose()
public void reset()
public void setErrorStream(java.io.PrintStream err)
public void setVerbose(boolean v)
public void unindent()
public void logWarning(java.lang.String msg)
public void logWarning(java.lang.String id, java.lang.String msg)
public void logWarning(java.lang.String id, java.lang.String msg, java.lang.String detail)