Skip to main content
summaryrefslogtreecommitdiffstats
blob: e0aa4054a31611575f5bda018370db0f4ad69e8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.eclipse.jdt.internal.core;

/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
import org.eclipse.core.resources.*;

import org.eclipse.jdt.core.*;

/**
 * @see ISourceRange
 */
/* package */ class SourceRange implements ISourceRange {

protected int offset, length;

protected SourceRange(int offset, int length) {
	this.offset = offset;
	this.length = length;
}
/**
 * @see ISourceRange
 */
public int getLength() {
	return this.length;
}
/**
 * @see ISourceRange
 */
public int getOffset() {
	return this.offset;
}
public String toString() {
	StringBuffer buffer = new StringBuffer();
	buffer.append("[offset="/*nonNLS*/);
	buffer.append(this.offset);
	buffer.append(", length="/*nonNLS*/);
	buffer.append(this.length);
	buffer.append("]"/*nonNLS*/);
	return buffer.toString();
}
}

Back to the top