1 11 package org.eclipse.jdt.internal.core; 12 13 import org.eclipse.jdt.core.ISourceRange; 14 15 18 class SourceRefElementInfo extends JavaElementInfo { 19 protected int fSourceRangeStart, fSourceRangeEnd; 20 25 public int getDeclarationSourceEnd() { 26 return fSourceRangeEnd; 27 } 28 33 public int getDeclarationSourceStart() { 34 return fSourceRangeStart; 35 } 36 protected ISourceRange getSourceRange() { 37 return new SourceRange(fSourceRangeStart, fSourceRangeEnd - fSourceRangeStart + 1); 38 } 39 protected void setSourceRangeEnd(int end) { 40 fSourceRangeEnd = end; 41 } 42 protected void setSourceRangeStart(int start) { 43 fSourceRangeStart = start; 44 } 45 } 46 | Popular Tags |