FileDocCategorySizeDatePackage
JavacErrorDetail.javaAPI DocGlassfish v2 API4767Fri May 04 22:32:52 BST 2007org.apache.jasper.compiler

JavacErrorDetail

public class JavacErrorDetail extends Object
Class providing details about a javac compilation error.
author
Jan Luehe
author
Kin-man Chung

Fields Summary
private String
javaFileName
private int
javaLineNum
private String
jspFileName
private int
jspBeginLineNum
private StringBuffer
errMsg
Constructors Summary
public JavacErrorDetail(String javaFileName, int javaLineNum, StringBuffer errMsg)
Constructor.

param
javaFileName The name of the Java file in which the compilation error occurred
param
javaLineNum The compilation error line number
param
errMsg The compilation error message


	this.javaFileName = javaFileName;
	this.javaLineNum = javaLineNum;
	this.errMsg = errMsg;
        this.jspBeginLineNum = -1;
    
public JavacErrorDetail(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuffer errMsg)
Constructor.

param
javaFileName The name of the Java file in which the compilation error occurred
param
javaLineNum The compilation error line number
param
jspFileName The name of the JSP file from which the Java source file was generated
param
jspBeginLineNum The start line number of the JSP element responsible for the compilation error
param
errMsg The compilation error message


        this(javaFileName, javaLineNum, errMsg);
	this.jspFileName = jspFileName;
	this.jspBeginLineNum = jspBeginLineNum;
    
Methods Summary
public java.lang.StringgetErrorMessage()
Gets the compilation error message.

return
Compilation error message

	return this.errMsg.toString();
    
public java.lang.StringgetJavaFileName()
Gets the name of the Java source file in which the compilation error occurred.

return
Java source file name

	return this.javaFileName;
    
public intgetJavaLineNumber()
Gets the compilation error line number.

return
Compilation error line number

	return this.javaLineNum;
    
public intgetJspBeginLineNumber()
Gets the start line number (in the JSP file) of the JSP element responsible for the compilation error.

return
Start line number of the JSP element responsible for the compilation error

	return this.jspBeginLineNum;
    
public java.lang.StringgetJspFileName()
Gets the name of the JSP file from which the Java source file was generated.

return
JSP file from which the Java source file was generated.

	return this.jspFileName;