public interface ParseListener
There's no particularly rigerous definition for the various levels.
I suppose it would be a little cleaner to make the message levels an enumeration, but I didn't think it was worth the extra clutter.
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG
All messages.
|
static int |
DETAIL
Detail messages and above.
|
static int |
ERROR
Error messages only.
|
static int |
INFO
Informational messages and above.
|
static int |
NONE
No messages.
|
static int |
WARNING
Warning messages and above.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message)
Emit a debug message.
|
void |
detail(java.lang.String message)
Emit a detail message.
|
void |
error(java.lang.String message)
Emit an error message.
|
int |
getMessageLevel()
How verbose are we being?
|
void |
info(java.lang.String message)
Emit an info message.
|
void |
setMessageLevel(int level)
How verbose do you want me to be?
|
void |
warning(java.lang.String message)
Emit a warning message.
|
static final int ERROR
static final int WARNING
static final int INFO
static final int DETAIL
static final int DEBUG
static final int NONE
void debug(java.lang.String message)
Tell me everything about the parse.
message
- The message.void detail(java.lang.String message)
Tell me about the details of the parse.
message
- The message.void info(java.lang.String message)
Keep me informed about the process of the parse.
message
- The message.void warning(java.lang.String message)
Tell if something looks fishy.
message
- The message.void error(java.lang.String message)
Tell me if there's been an error of some sort.
message
- The message.int getMessageLevel()
This returns a level, one of the constants defined in this interface.
void setMessageLevel(int level)
Sets the message output level.
level
- The level; should be one of the constants defined in this interface.