Package com.attivio.sdk.token
Class TokenEnum
- java.lang.Object
-
- com.attivio.sdk.token.TokenEnum
-
public final class TokenEnum extends java.lang.Object
Enumeration for scanning token lists efficientlyExpert Use Only.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
endOffset()
Get the end offset for the current position.int
endOffset(int span)
Get the end offset for the current position ofspan
length.int
increment()
Get the position increment for the current token.Token
next()
Advance to the next element.Token
reset(TokenList tokens)
Position this TokenEnum at the beginning oftokens
.Token
seek(TokenEnum other)
Position this TokenEnum at the same location asother
.int
startOffset()
Get the start offset for the current position.Token
token()
Get the current token.
-
-
-
Method Detail
-
token
public Token token()
Get the current token.
-
increment
public int increment()
Get the position increment for the current token.
-
startOffset
public int startOffset()
Get the start offset for the current position.
-
endOffset
public int endOffset()
Get the end offset for the current position.
-
endOffset
public int endOffset(int span)
Get the end offset for the current position ofspan
length.
-
reset
public Token reset(TokenList tokens)
Position this TokenEnum at the beginning oftokens
.Returns
null
iftokens
has no indexed tokens.
-
next
public Token next()
Advance to the next element.Returns
null
if there are no more elements.
-
-