/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package net.sourceforge.phpdt.internal.corext.textmanipulation;
/**
* A text region describes a certain range in an ITextBuffer
. A
* region is defined by its offset into the text buffer and its length.
*
* A region is considered a value object. Its offset or length do not change
* over time.
*
*
* NOTE: This class/interface is part of an interim API that is still
* under development and expected to change significantly before reaching
* stability. It is being made available at this early stage to solicit feedback
* from pioneering adopters on the understanding that any code that uses this
* API will almost certainly be broken (repeatedly) as the API evolves.
*
*/
// This class avoids contamination of clients with wrong imports.
public abstract class TextRegion {
/**
* Returns the offset of the region.
*
* @return the offset of the region
*/
public abstract int getOffset();
/**
* Returns the length of the region.
*
* @return the length of the region
*/
public abstract int getLength();
}