All Packages Class Hierarchy This Package Previous Next Index
Object | +----com.symantec.itools.vcafe.openapi.Range
SourceFile
. It is not the range of the unicode
version of that text. Note that this means that a Range
cannot be computed arbitrarily
from the unicode StringBuffer
equivalent text. Ranges are meant to be passed from
Visual Cafe to plug-ins, and not vice-versa.
Range
that starts at the specified character position (in bytes), and
has the given length (also in bytes).
Range
that has the same start and length as the given Range
.
Range
contains the specified offset.
Range
fully contains the give Range r
.
Range
has the identical extent as the given Range
.
Range
.
Range
length is zero).
String
that represents this object.
Range
that contains the full extend of both this and the
given Range
.
public Range(int start, int length)
Range
that starts at the specified character position (in bytes), and
has the given length (also in bytes).
public Range(Range r)
Range
that has the same start and length as the given Range
.
Range
.
public boolean contains(int offset)
Range
contains the specified offset.
true
if this Range
contains the offset, false
otherwise.
public boolean contains(Range r)
Range
fully contains the give Range r
.
Range
.
true
if the given Range
is fully contained by this
Range
, false
otherwise.
public boolean equals(Range r)
Range
has the identical extent as the given Range
.
Range
.
true
if the extents are the same, false
otherwise.
public int getDistance(int offset)
Range
. If the offset is
contained within the extent of this Range
, 0 is returned.
Range
.
public int getEnd()
public int getLength()
Range
in bytes.
public int getStart()
Range
in zero-based bytes.
public boolean isEmpty()
Range
length is zero). If this is true, this
Range
is an insertion point, otherwise it is an area of text.
true
if the range is empty.
public java.lang.String toString()
String
that represents this object.
String
.
public com.symantec.itools.vcafe.openapi.Range union(Range r)
Range
that contains the full extend of both this and the
given Range
.
Range
(may be null
).
Range
whose extent contains both this and the given Range
.
All Packages Class Hierarchy This Package Previous Next Index