|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpobs.PDefaultErrorHandler
Constructor Summary | |
PDefaultErrorHandler()
|
Method Summary | |
java.lang.String |
createErrorMessage(PScanner input)
Creates a human readable error message using the specified input to get reasonable error positions (like line number and column number). |
long |
getErrorPosition()
Gets the actual error position. |
void |
notify(long position,
PParser parser)
Notifies the error handler that an error occured for the specified parser at the specified parsing position. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PDefaultErrorHandler()
Method Detail |
public void notify(long position, PParser parser)
PErrorHandler
notify
in interface PErrorHandler
position
- Parsing position.parser
- Parser which recognized a missmatch.public long getErrorPosition()
PErrorHandler
getErrorPosition
in interface PErrorHandler
public java.lang.String createErrorMessage(PScanner input)
PErrorHandler
createErrorMessage
in interface PErrorHandler
input
- Input source of parsing.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |