org.apache.jasper.compiler

Class JavacErrorDetail

public class JavacErrorDetail extends Object

Class providing details about a javac compilation error.

Author: Jan Luehe Kin-man Chung

Constructor Summary
JavacErrorDetail(String javaFileName, int javaLineNum, StringBuffer errMsg)
Constructor.
JavacErrorDetail(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuffer errMsg)
Constructor.
JavacErrorDetail(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuffer errMsg, JspCompilationContext ctxt)
Method Summary
StringgetErrorMessage()
Gets the compilation error message.
StringgetJavaFileName()
Gets the name of the Java source file in which the compilation error occurred.
intgetJavaLineNumber()
Gets the compilation error line number.
intgetJspBeginLineNumber()
Gets the start line number (in the JSP file) of the JSP element responsible for the compilation error.
StringgetJspExtract()
Gets the extract of the JSP that corresponds to this message.
StringgetJspFileName()
Gets the name of the JSP file from which the Java source file was generated.

Constructor Detail

JavacErrorDetail

public JavacErrorDetail(String javaFileName, int javaLineNum, StringBuffer errMsg)
Constructor.

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

JavacErrorDetail

public JavacErrorDetail(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuffer errMsg)
Constructor.

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

JavacErrorDetail

public JavacErrorDetail(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuffer errMsg, JspCompilationContext ctxt)

Method Detail

getErrorMessage

public String getErrorMessage()
Gets the compilation error message.

Returns: Compilation error message

getJavaFileName

public String getJavaFileName()
Gets the name of the Java source file in which the compilation error occurred.

Returns: Java source file name

getJavaLineNumber

public int getJavaLineNumber()
Gets the compilation error line number.

Returns: Compilation error line number

getJspBeginLineNumber

public int getJspBeginLineNumber()
Gets the start line number (in the JSP file) of the JSP element responsible for the compilation error.

Returns: Start line number of the JSP element responsible for the compilation error

getJspExtract

public String getJspExtract()
Gets the extract of the JSP that corresponds to this message.

Returns: Extract of JSP where error occurred

getJspFileName

public String getJspFileName()
Gets the name of the JSP file from which the Java source file was generated.

Returns: JSP file from which the Java source file was generated.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.