org.openide.compiler
Class ErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.openide.compiler.CompilerEvent
              |
              +--org.openide.compiler.ErrorEvent
All Implemented Interfaces:
Serializable

public class ErrorEvent
extends CompilerEvent

Used to report errors and warnings.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ErrorEvent(CompilerGroup source, FileObject errorFile, int line, int column, String message, String ref)
          Create an error event.
 
Method Summary
 int getColumn()
          Get the column number where the error occurred.
 int getLine()
          Get the line number where the error occurred.
 String getMessage()
          Get a descriptive message explaining the error.
 String getReferenceText()
          Get a sample line of text containing the error.
 
Methods inherited from class org.openide.compiler.CompilerEvent
getCompilerGroup, getFile
 
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
 

Constructor Detail

ErrorEvent

public ErrorEvent(CompilerGroup source,
                  FileObject errorFile,
                  int line,
                  int column,
                  String message,
                  String ref)
Create an error event.
Parameters:
source - the compiler group producing the event
errorFile - the file in error
line - the line number of the error
column - the column number of the error
message - a description of the error
ref - a text line showing the erroneous text
Method Detail

getLine

public int getLine()
Get the line number where the error occurred.
Returns:
the line

getMessage

public String getMessage()
Get a descriptive message explaining the error.
Returns:
a description

getColumn

public int getColumn()
Get the column number where the error occurred.
Returns:
the column

getReferenceText

public String getReferenceText()
Get a sample line of text containing the error.
Returns:
the erroneous line


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.