Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.search
Class OffsetLocatable

java.lang.Object
  extended by 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
 
Method Summary
 int getElementEndOffset()
           
 int getElementStartOffset()
           
 int getNameEndOffset()
           
 int getNameStartOffset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 name
nameEndOffset - - 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 name
nameEndOffset - - the ending offset of the name
elementStartOffset - - the starting offset of the element
elementEndOffset - - the ending offset of the element
Method Detail

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

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.