1 11 package org.eclipse.jface.text; 12 13 14 19 final class Line implements IRegion { 20 21 22 public int offset; 23 24 public int length; 25 26 public final String delimiter; 27 28 35 public Line(int offset, int end, String delimiter) { 36 this.offset= offset; 37 this.length= (end - offset) +1; 38 this.delimiter= delimiter; 39 } 40 41 47 public Line(int offset, int length) { 48 this.offset= offset; 49 this.length= length; 50 this.delimiter= null; 51 } 52 53 56 public int getOffset() { 57 return offset; 58 } 59 60 63 public int getLength() { 64 return length; 65 } 66 } 67 68 69 | Popular Tags |