|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface SentenceIterator
An iterator over a sequence of characters, consisting of subsequences that
may overlap, and that do not necessarily cover every character in the
underlying sequence. The iterator has both a current character position,
from which characters are read, and an origin position that the character
position may be returned to. Initially, both the origin and current
character positions are invalid (as there may be no valid origins present);
a call to hasNextOrigin
should first be made to
determine if an origin is present, followed by a call to nextOrigin()
to move to the first available origin.
メソッドの概要 | |
---|---|
char |
current()
Returns the character at the current character cursor position |
boolean |
hasNextOrigin()
Reports whether the sentence has any more origins |
int |
length()
Returns the length of the underlying character range being iterated over, including any ignored characters |
int |
nextOrigin()
Moves the origin forward to the next available position. |
int |
origin()
Returns the current origin position. |
void |
rewindToOrigin()
Returns to the current origin position. |
int |
skippedCharCount()
Returns the number of characters skipped between the previous and current character spans |
インタフェース net.java.sen.trie.CharIterator から継承されたメソッド |
---|
hasNext, next |
メソッドの詳細 |
---|
int length()
int origin()
char current()
boolean hasNextOrigin()
true
if the sentence has more origins remainingint nextOrigin()
next
will start at the
new origin position
void rewindToOrigin()
next
will start at the origin position
int skippedCharCount()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |