1 15 package org.josql.functions; 16 17 import java.io.File ; 18 19 27 public class FileMatch 28 { 29 30 private File f = null; 31 private int line = 0; 32 private int col = 0; 33 private String str = null; 34 private String oLine = null; 35 36 public FileMatch (File f, 37 int line, 38 int col, 39 String str, 40 String oLine) 41 { 42 43 this.f = f; 44 this.line = line; 45 this.col = col; 46 this.str = str; 47 this.oLine = oLine; 48 49 } 50 51 public String toString () 52 { 53 54 return this.f.getPath () + "[" + this.line + "," + this.col + "] \"" + this.str + "\" " + this.oLine; 55 56 } 57 58 public String getOriginalLine () 59 { 60 61 return this.oLine; 62 63 } 64 65 public String getString () 66 { 67 68 return this.str; 69 70 } 71 72 public int getColumn () 73 { 74 75 return this.col; 76 77 } 78 79 public int getLine () 80 { 81 82 return this.line; 83 84 } 85 86 public File getFile () 87 { 88 89 return this.f; 90 91 } 92 93 } 94 | Popular Tags |