1 16 package org.apache.cocoon.components.language.programming; 17 18 25 26 public class CompilerError { 27 30 private boolean error; 31 34 private int startline; 35 38 private int startcolumn; 39 42 private int endline; 43 46 private int endcolumn; 47 50 private String file; 51 54 private String message; 55 56 67 public CompilerError( 68 String file, 69 boolean error, 70 int startline, 71 int startcolumn, 72 int endline, 73 int endcolumn, 74 String message 75 ) 76 { 77 this.file = file; 78 this.error = error; 79 this.startline = startline; 80 this.startcolumn = startcolumn; 81 this.endline = endline; 82 this.endcolumn = endcolumn; 83 this.message = message; 84 } 85 86 91 public CompilerError(String message) { 92 this.message = message; 93 } 94 95 100 public String getFile() { 101 return file; 102 } 103 104 109 public boolean isError() { 110 return error; 111 } 112 113 118 public int getStartLine() { 119 return startline; 120 } 121 122 129 public int getStartColumn() { 130 return startcolumn; 131 } 132 133 138 public int getEndLine() { 139 return endline; 140 } 141 142 149 public int getEndColumn() { 150 return endcolumn; 151 } 152 153 158 public String getMessage() { 159 return message; 160 } 161 } 162 | Popular Tags |