Package org.apache.jasper.compiler
Class JavacErrorDetail
java.lang.Object
org.apache.jasper.compiler.JavacErrorDetail
Class providing details about a javac compilation error.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBuilder
private String
private int
private int
private String
-
Constructor Summary
ConstructorsConstructorDescriptionJavacErrorDetail
(String javaFileName, int javaLineNum, StringBuilder errMsg) Constructor.JavacErrorDetail
(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuilder errMsg) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the compilation error message.Gets the name of the Java source file in which the compilation error occurred.int
Gets the compilation error line number.int
Gets the start line number (in the JSP file) of the JSP element responsible for the compilation error.Gets the name of the JSP file from which the Java source file was generated.
-
Field Details
-
javaFileName
-
javaLineNum
private int javaLineNum -
jspFileName
-
jspBeginLineNum
private int jspBeginLineNum -
errMsg
-
-
Constructor Details
-
JavacErrorDetail
Constructor.- Parameters:
javaFileName
- The name of the Java file in which the compilation error occurredjavaLineNum
- The compilation error line numbererrMsg
- The compilation error message
-
JavacErrorDetail
public JavacErrorDetail(String javaFileName, int javaLineNum, String jspFileName, int jspBeginLineNum, StringBuilder errMsg) Constructor.- Parameters:
javaFileName
- The name of the Java file in which the compilation error occurredjavaLineNum
- The compilation error line numberjspFileName
- The name of the JSP file from which the Java source file was generatedjspBeginLineNum
- The start line number of the JSP element responsible for the compilation errorerrMsg
- The compilation error message
-
-
Method Details
-
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
-
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.
-
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
-
getErrorMessage
Gets the compilation error message.- Returns:
- Compilation error message
-