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