public class DefaultParserFeedback extends java.lang.Object implements ParserFeedback, java.io.Serializable
ParserFeedback,
FeedbackManager,
序列化表格| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEBUG
Constructor argument for a debugging feedback.
|
static int |
NORMAL
Constructor argument for a normal feedback.
|
static int |
QUIET
Constructor argument for a quiet feedback.
|
| 构造器和说明 |
|---|
DefaultParserFeedback()
Construct a NORMAL feedback object.
|
DefaultParserFeedback(int mode)
Construct a feedback object of the given type.
|
public static final int QUIET
public static final int NORMAL
public static final int DEBUG
public DefaultParserFeedback(int mode)
mode - The type of feedback:
DEBUG - verbose debugging with stack traces NORMAL - normal messages QUIET - no messages
java.lang.IllegalArgumentException - if mode is not
QUIET, NORMAL or DEBUG.public DefaultParserFeedback()
public void info(java.lang.String message)
info 在接口中 ParserFeedbackmessage - The message to print.public void warning(java.lang.String message)
warning 在接口中 ParserFeedbackmessage - The message to print.public void error(java.lang.String message,
ParserException exception)
error 在接口中 ParserFeedbackmessage - The message to print.exception - The exception for stack tracing.