1 20 21 package org.jacorb.idl; 22 23 34 35 import java.io.File ; 36 import java.io.InputStream ; 37 38 public class PositionInfo 39 { 40 public String line = ""; 41 public int line_no = 0; 42 public int line_pos = 0; 43 public String pragma_prefix = ""; 44 public File file; 45 public InputStream stream; 46 47 public PositionInfo( int _line_no, 48 int _char_pos, 49 String prefix, 50 String _line, 51 File file) 52 { 53 line_no = _line_no; 54 line_pos = _char_pos; 55 pragma_prefix = prefix; 56 line = _line; 57 this.file = file; 58 } 59 60 public String toString() 61 { 62 return file.getName() + ", line " + line_no + "(" + line_pos + ")"; 63 } 64 65 } 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | Popular Tags |