org.eclipse.cdt.core.search
Class OffsetLocatable
java.lang.Object
org.eclipse.cdt.core.search.OffsetLocatable
- All Implemented Interfaces:
- IMatchLocatable, IOffsetLocatable
public class OffsetLocatable
- extends Object
- implements IOffsetLocatable
Constructor Summary |
OffsetLocatable(int nameStartOffset,
int nameEndOffset)
Used to create an OffsetLocatable that contains just the name offsets |
OffsetLocatable(int nameStartOffset,
int nameEndOffset,
int elementStartOffset,
int elementEndOffset)
Create an OffsetLocatable that contains both the offsets of the name and the offsets
of the element itself |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetLocatable
public OffsetLocatable(int nameStartOffset,
int nameEndOffset)
- Used to create an OffsetLocatable that contains just the name offsets
- Parameters:
nameStartOffset
- - the starting offset of the namenameEndOffset
- - the ending offset of the name
OffsetLocatable
public OffsetLocatable(int nameStartOffset,
int nameEndOffset,
int elementStartOffset,
int elementEndOffset)
- Create an OffsetLocatable that contains both the offsets of the name and the offsets
of the element itself
- Parameters:
nameStartOffset
- - the starting offset of the namenameEndOffset
- - the ending offset of the nameelementStartOffset
- - the starting offset of the elementelementEndOffset
- - the ending offset of the element
getNameStartOffset
public int getNameStartOffset()
- Specified by:
getNameStartOffset
in interface IOffsetLocatable
getNameEndOffset
public int getNameEndOffset()
- Specified by:
getNameEndOffset
in interface IOffsetLocatable
getElementStartOffset
public int getElementStartOffset()
- Specified by:
getElementStartOffset
in interface IOffsetLocatable
getElementEndOffset
public int getElementEndOffset()
- Specified by:
getElementEndOffset
in interface IOffsetLocatable
Copyright (c) IBM Corp. and others 2004. All Rights Reserved.