|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Trace<T>
This interface is used to trace parser result.
Method Summary | |
---|---|
void |
onError(java.lang.Object except,
java.lang.CharSequence src,
int index,
int steps,
int offset)
This method is called when parser failed. |
void |
onSuccess(T result,
java.lang.CharSequence src,
int index,
int steps,
int offset)
This method is called when parser succeeded. |
Method Detail |
---|
void onError(java.lang.Object except, java.lang.CharSequence src, int index, int steps, int offset)
except
- the pseudo exception object. null if no exception.src
- the text being parsed.index
- the index where the parser terminates.steps
- the logical steps consumed.offset
- the physical offset consumed.void onSuccess(T result, java.lang.CharSequence src, int index, int steps, int offset)
result
- the parser result.src
- the text being parsed.index
- the index where the parser terminates.steps
- the logical steps consumed.offset
- the physical offset consumed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |