com.go.tea.compiler
Class ErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.go.tea.compiler.ErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ErrorEvent
extends java.util.EventObject

Version:
14 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Method Summary
 CompilationUnit getCompilationUnit()
           
 Token getCulpritToken()
           
 java.lang.String getDetailedErrorMessage()
          Returns the error message prepended with source file information.
 java.lang.String getErrorMessage()
           
 SourceInfo getSourceInfo()
          This method reports on where in the source code an error was found.
 java.lang.String getSourceInfoMessage()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getErrorMessage

public java.lang.String getErrorMessage()

getDetailedErrorMessage

public java.lang.String getDetailedErrorMessage()
Returns the error message prepended with source file information.

getSourceInfoMessage

public java.lang.String getSourceInfoMessage()

getSourceInfo

public SourceInfo getSourceInfo()
This method reports on where in the source code an error was found.
Returns:
Source information on this error or null if not known.

getCulpritToken

public Token getCulpritToken()
Returns:
Null if there was no offending token

getCompilationUnit

public CompilationUnit getCompilationUnit()
Returns:
Null if there was no CompilationUnit