public class BoundedMarkPos extends BasicMarkPos
Modifier and Type | Class and Description |
---|---|
static class |
BoundedMarkPos.UnmarkableException
Exception thrown if asked to mark past XML elements or attributes
|
Modifier and Type | Field and Description |
---|---|
private Token[] |
tokens |
private int |
tokNum |
charPos, fullText, wordPos
Constructor and Description |
---|
BoundedMarkPos(Token[] tokens)
Creates a new mark pos
|
Modifier and Type | Method and Description |
---|---|
String |
getTextTo(MarkPos other,
boolean checkUnmarkable)
Ensures that no XML elements or attributes are accidentally included in
the text.
|
(package private) void |
setTokNum(int tokNum)
Establishes the token number of this mark pos
|
void |
stripMarkers(int termEnd)
Called by BoundedWordIter when called to get the END_PLUS of a token.
|
countTextTo, getTextTo, wordPos
final void setTokNum(int tokNum)
public String getTextTo(MarkPos other, boolean checkUnmarkable)
public void stripMarkers(int termEnd)