ppg.test.multi
Class LexicalError
java.lang.Object
java.lang.Throwable
java.lang.Exception
ppg.test.multi.LexicalError
- All Implemented Interfaces:
- ppg.test.multi.LexerResult, java.io.Serializable
- public class LexicalError
- extends java.lang.Exception
- implements ppg.test.multi.LexerResult
- See Also:
- Serialized Form
Constructor Summary |
LexicalError(java.lang.String filename,
int lineNumber,
java.lang.String message)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LexicalError
public LexicalError(java.lang.String filename,
int lineNumber,
java.lang.String message)
unparse
public void unparse(java.io.OutputStream o)
throws java.io.IOException
- Description copied from interface:
ppg.test.multi.LexerResult
- Displays the parsed token in human-readable form.
The token has the form <token-type, attribute, line-number>
- Specified by:
unparse
in interface ppg.test.multi.LexerResult
- Parameters:
o
- The OutputStream onto which to print the token
- Throws:
java.io.IOException
toString
public java.lang.String toString()
filename
public java.lang.String filename()
getMessage
public java.lang.String getMessage()
lineNumber
public int lineNumber()
- Specified by:
lineNumber
in interface ppg.test.multi.LexerResult
- Returns:
- line number on which the token was found