1 package org.simantics.ltk;
4 public class Location {
10 public Location(ISource source, int line, int beginPos, int endPos) {
13 this.beginPos = beginPos;
17 public Location(ISource source) {
18 this(source, 0, 0, 0);
22 public String toString() {
23 return line + ":" + beginPos;
26 public ISource getSource() {
30 public void setSource(ISource source) {
34 public int getLine() {
35 return line + source.startLine();
38 public int getBeginPos() {
39 return beginPos + source.startPos();
42 public int getEndPos() {
43 return endPos + source.startPos();