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
 
 
 
| 
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. | 
 
 
 
 
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 eventerrorFile - the file in errorline - the line number of the errorcolumn - the column number of the errormessage - a description of the errorref - a text line showing the erroneous text
 
 
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.