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