1 17 18 package org.apache.jasper.compiler; 19 20 26 public class JavacErrorDetail { 27 28 private String javaFileName; 29 private int javaLineNum; 30 private String jspFileName; 31 private int jspBeginLineNum; 32 private StringBuffer errMsg; 33 34 42 public JavacErrorDetail(String javaFileName, 43 int javaLineNum, 44 StringBuffer errMsg) { 45 46 this.javaFileName = javaFileName; 47 this.javaLineNum = javaLineNum; 48 this.errMsg = errMsg; 49 this.jspBeginLineNum = -1; 50 } 51 52 64 public JavacErrorDetail(String javaFileName, 65 int javaLineNum, 66 String jspFileName, 67 int jspBeginLineNum, 68 StringBuffer errMsg) { 69 70 this(javaFileName, javaLineNum, errMsg); 71 this.jspFileName = jspFileName; 72 this.jspBeginLineNum = jspBeginLineNum; 73 } 74 75 81 public String getJavaFileName() { 82 return this.javaFileName; 83 } 84 85 90 public int getJavaLineNumber() { 91 return this.javaLineNum; 92 } 93 94 100 public String getJspFileName() { 101 return this.jspFileName; 102 } 103 104 111 public int getJspBeginLineNumber() { 112 return this.jspBeginLineNum; 113 } 114 115 120 public String getErrorMessage() { 121 return this.errMsg.toString(); 122 } 123 } 124 | Popular Tags |