jfun.parsec

Interface ParseError

public interface ParseError extends Serializable

Describes Parse error.

Author: Ben Yu Nov 18, 2004

Method Summary
StringgetEncountered()
Get the "... encountered" error.
String[]getExpecting()
Get the "expecting ..." errors.
intgetIndex()
Gets the index number in the original source.
String[]getMessages()
Get the user error messages.
String[]getUnexpected()
Get the "unexpected ..." error.

Method Detail

getEncountered

public String getEncountered()
Get the "... encountered" error.

Returns: the actually encountered token when error happens.

getExpecting

public String[] getExpecting()
Get the "expecting ..." errors.

Returns: all the expectings.

getIndex

public int getIndex()
Gets the index number in the original source.

Returns: the index number.

getMessages

public String[] getMessages()
Get the user error messages.

Returns: all the user-provided message.

getUnexpected

public String[] getUnexpected()
Get the "unexpected ..." error.

Returns: all the unexpected.