Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceRange.java')
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceRange.java91
1 files changed, 0 insertions, 91 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceRange.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceRange.java
deleted file mode 100644
index 775f6f3d882..00000000000
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceRange.java
+++ /dev/null
@@ -1,91 +0,0 @@
-package org.eclipse.cdt.internal.core.model;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.cdt.core.model.ISourceRange;
-
-/**
- * @see ISourceRange
- */
-class SourceRange implements ISourceRange {
-
- protected int startPos, length;
- protected int idStartPos, idLength;
- protected int startLine, endLine;
-
- protected SourceRange(int startPos, int length) {
- this.startPos = startPos;
- this.length = length;
- idStartPos = 0;
- idLength = 0;
- startLine = 0;
- endLine = 0;
- }
-
- protected SourceRange(int startPos, int length, int idStartPos, int idLength) {
- this.startPos = startPos;
- this.length = length;
- this.idStartPos = idStartPos;
- this.idLength = idLength;
- }
-
- protected SourceRange(int startPos, int length, int idStartPos, int idLength,
- int startLine, int endLine) {
- this.startPos = startPos;
- this.length = length;
- this.idStartPos = idStartPos;
- this.idLength = idLength;
- this.startLine = startLine;
- this.endLine = endLine;
- }
- /**
- * @see ISourceRange
- */
- public int getLength() {
- return length;
- }
-
- /**
- * @see ISourceRange
- */
- public int getStartPos() {
- return startPos;
- }
-
- /**
- */
- public int getIdStartPos() {
- return idStartPos;
- }
-
- public int getIdLength() {
- return idLength;
- }
-
- public int getStartLine() {
- return startLine;
- }
-
- public int getEndLine() {
- return endLine;
- }
-
- public String toString() {
- StringBuffer buffer = new StringBuffer();
- buffer.append("[offset="); //$NON-NLS-1$
- buffer.append(this.startPos);
- buffer.append(", length="); //$NON-NLS-1$
- buffer.append(this.length);
- buffer.append("]"); //$NON-NLS-1$
-
- buffer.append("[IdOffset="); //$NON-NLS-1$
- buffer.append(this.idStartPos);
- buffer.append(", idLength="); //$NON-NLS-1$
- buffer.append(this.idLength);
- buffer.append("]"); //$NON-NLS-1$
- return buffer.toString();
- }
-}

Back to the top