|
GXPARSE hosted by | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MatchedText
A sequence of characters
that have been
matched
in a ScanBuffer
.
A MatchedText
instance becomes invalid when a prefix of nonzero
length is removed
from the corresponding
ScanBuffer
or one of its ancestor ScanBuffer
s.
If a non-volatile character sequence is required, it should be obtained via
the toString
method.
Some implementations of MatchedText
may hold much more data
than will fit in memory. In such cases, copying very large numbers of
characters to memory or invoking the toString()
on the
MatchedText
(or on a large subsequence of the
MatchedText
) may cause an OutOfMemoryError
.
The content of a MatchedText
, and any of its
subsquences, is undefined outside the scope of an instance method in
ScanMatch
, ScanAction
, or
ScanRule
. When
persistent data is required, the data should be obtained by copying the
characters or by invoking the toString
method of the
appropriate MatchedText
or subsequence.
Method Summary |
---|
Methods inherited from interface java.lang.CharSequence |
---|
charAt, length, subSequence, toString |
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |