Package com.attivio.sdk.token
Class TokenEnum
- java.lang.Object
-
- com.attivio.sdk.token.TokenEnum
-
public final class TokenEnum extends java.lang.ObjectEnumeration for scanning token lists efficientlyExpert Use Only.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intendOffset()Get the end offset for the current position.intendOffset(int span)Get the end offset for the current position ofspanlength.intincrement()Get the position increment for the current token.Tokennext()Advance to the next element.Tokenreset(TokenList tokens)Position this TokenEnum at the beginning oftokens.Tokenseek(TokenEnum other)Position this TokenEnum at the same location asother.intstartOffset()Get the start offset for the current position.Tokentoken()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 ofspanlength.
-
reset
public Token reset(TokenList tokens)
Position this TokenEnum at the beginning oftokens.Returns
nulliftokenshas no indexed tokens.
-
next
public Token next()
Advance to the next element.Returns
nullif there are no more elements.
-
-