org.teatrove.tea.compiler
Class ErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.teatrove.tea.compiler.ErrorEvent
All Implemented Interfaces:
Serializable

public class ErrorEvent
extends EventObject

Author:
Brian S O'Neill
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 CompilationUnit getCompilationUnit()
           
 Token getCulpritToken()
           
 String getDetailedErrorMessage()
          Returns the error message prepended with source file information.
 String getErrorMessage()
           
 SourceInfo getSourceInfo()
          This method reports on where in the source code an error was found.
 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 String getErrorMessage()

getDetailedErrorMessage

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


getSourceInfoMessage

public 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


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.