FileDocCategorySizeDatePackage
CompilerError.javaAPI DocApache Axis 1.44306Sat Apr 22 18:57:28 BST 2006org.apache.axis.components.compiler

CompilerError

public class CompilerError extends Object
This class encapsulates an error message produced by a programming language processor (whether interpreted or compiled)
author
Davanum Srinivas
author
Stefano Mazzocchi
since
2.0

Fields Summary
private boolean
error
Is this a severe error or a warning?
private int
startline
The start line number of the offending program text
private int
startcolumn
The start column number of the offending program text
private int
endline
The end line number of the offending program text
private int
endcolumn
The end column number of the offending program text
private String
file
The name of the file containing the offending program text
private String
message
The actual error text produced by the language processor
Constructors Summary
public CompilerError(String file, boolean error, int startline, int startcolumn, int endline, int endcolumn, String message)
The error message constructor.

param
file The name of the file containing the offending program text
param
error The actual error text produced by the language processor
param
startline The start line number of the offending program text
param
startcolumn The start column number of the offending program text
param
endline The end line number of the offending program text
param
endcolumn The end column number of the offending program text
param
message The actual error text produced by the language processor

    this.file = file;
    this.error = error;
    this.startline = startline;
    this.startcolumn = startcolumn;
    this.endline = endline;
    this.endcolumn = endcolumn;
    this.message = message;
  
public CompilerError(String message)
The error message constructor.

param
message The actual error text produced by the language processor

    this.message = message;
  
Methods Summary
public intgetEndColumn()
Return the ending column number of the program text originating this error

return
The ending column number of the program text originating this error

    return endcolumn;
  
public intgetEndLine()
Return the ending line number of the program text originating this error

return
The ending line number of the program text originating this error

    return endline;
  
public java.lang.StringgetFile()
Return the filename associated with this compiler error.

return
The filename associated with this compiler error

    return file;
  
public java.lang.StringgetMessage()
Return the message produced by the language processor

return
The message produced by the language processor

    return message;
  
public intgetStartColumn()
Return the starting column number of the program text originating this error

return
The starting column number of the program text originating this error

    return startcolumn;
  
public intgetStartLine()
Return the starting line number of the program text originating this error

return
The starting line number of the program text originating this error

    return startline;
  
public booleanisError()
Assert whether this is a severe error or a warning

return
Whether the error is severe

    return error;