ppg.test.multi
Class LexicalError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byppg.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)
           
 
Method Summary
 java.lang.String filename()
           
 java.lang.String getMessage()
           
 int lineNumber()
           
 java.lang.String toString()
           
 void unparse(java.io.OutputStream o)
          Displays the parsed token in human-readable form.
 
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
 

Constructor Detail

LexicalError

public LexicalError(java.lang.String filename,
                    int lineNumber,
                    java.lang.String message)
Method Detail

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