org.eclipse.jdt.internal.core
Class SourceRange

java.lang.Object
  extended by org.eclipse.jdt.internal.core.SourceRange
All Implemented Interfaces:
ISourceRange

public class SourceRange
extends java.lang.Object
implements ISourceRange

See Also:
ISourceRange

Constructor Summary
SourceRange(int offset, int length)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getLength()
          Returns the number of characters of the source code for this element, relative to the source buffer in which this element is contained.
 int getOffset()
          Returns the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceRange

public SourceRange(int offset,
                   int length)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getLength

public int getLength()
Description copied from interface: ISourceRange
Returns the number of characters of the source code for this element, relative to the source buffer in which this element is contained.

Specified by:
getLength in interface ISourceRange
Returns:
the number of characters of the source code for this element, relative to the source buffer in which this element is contained
See Also:
ISourceRange

getOffset

public int getOffset()
Description copied from interface: ISourceRange
Returns the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained.

Specified by:
getOffset in interface ISourceRange
Returns:
the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained
See Also:
ISourceRange

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object