public class DefaultParseListener extends java.lang.Object implements ParseListener
ParseListener.
This implementation writes messages to System.err.
| Modifier and Type | Field and Description |
|---|---|
int |
level |
| Constructor and Description |
|---|
DefaultParseListener()
Create a default listener.
|
DefaultParseListener(int level)
Create a default listener with a particular message level.
|
| 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.
|
public DefaultParseListener()
The default listener only reports errors.
public DefaultParseListener(int level)
level - The level.public void debug(java.lang.String message)
ParseListenerTell me everything about the parse.
debug in interface ParseListenermessage - The message.public void detail(java.lang.String message)
ParseListenerTell me about the details of the parse.
detail in interface ParseListenermessage - The message.public void info(java.lang.String message)
ParseListenerKeep me informed about the process of the parse.
info in interface ParseListenermessage - The message.public void warning(java.lang.String message)
ParseListenerTell if something looks fishy.
warning in interface ParseListenermessage - The message.public void error(java.lang.String message)
ParseListenerTell me if there's been an error of some sort.
error in interface ParseListenermessage - The message.public int getMessageLevel()
ParseListenerThis returns a level, one of the constants defined in this interface.
getMessageLevel in interface ParseListenerpublic void setMessageLevel(int level)
ParseListenerSets the message output level.
setMessageLevel in interface ParseListenerlevel - The level; should be one of the constants defined in this interface.