Package org.apache.jasper.compiler
Class JavacErrorDetail
- java.lang.Object
- 
- org.apache.jasper.compiler.JavacErrorDetail
 
- 
 public class JavacErrorDetail extends java.lang.ObjectClass providing details about a javac compilation error.- Author:
- Jan Luehe, Kin-man Chung
 
- 
- 
Constructor SummaryConstructors Constructor Description JavacErrorDetail(java.lang.String javaFileName, int javaLineNum, java.lang.StringBuilder errMsg)Constructor.JavacErrorDetail(java.lang.String javaFileName, int javaLineNum, java.lang.String jspFileName, int jspBeginLineNum, java.lang.StringBuilder errMsg, JspCompilationContext ctxt)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorMessage()Gets the compilation error message.java.lang.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.java.lang.StringgetJspExtract()Gets the extract of the JSP that corresponds to this message.java.lang.StringgetJspFileName()Gets the name of the JSP file from which the Java source file was generated.
 
- 
- 
- 
Constructor Detail- 
JavacErrorDetailpublic JavacErrorDetail(java.lang.String javaFileName, int javaLineNum, java.lang.StringBuilder 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
 
 - 
JavacErrorDetailpublic JavacErrorDetail(java.lang.String javaFileName, int javaLineNum, java.lang.String jspFileName, int jspBeginLineNum, java.lang.StringBuilder errMsg, JspCompilationContext ctxt)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
- ctxt- The compilation context
 
 
- 
 - 
Method Detail- 
getJavaFileNamepublic java.lang.String getJavaFileName() Gets the name of the Java source file in which the compilation error occurred.- Returns:
- Java source file name
 
 - 
getJavaLineNumberpublic int getJavaLineNumber() Gets the compilation error line number.- Returns:
- Compilation error line number
 
 - 
getJspFileNamepublic java.lang.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.
 
 - 
getJspBeginLineNumberpublic 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
 
 - 
getErrorMessagepublic java.lang.String getErrorMessage() Gets the compilation error message.- Returns:
- Compilation error message
 
 - 
getJspExtractpublic java.lang.String getJspExtract() Gets the extract of the JSP that corresponds to this message.- Returns:
- Extract of JSP where error occurred
 
 
- 
 
-