Uses of Class
com.attivio.sdk.token.Token
-
Packages that use Token Package Description com.attivio.sdk.token Copyright 2019 Attivio Inc., All rights reserved.com.attivio.util Contains utility classes and methods used across the Attivio code base. -
-
Uses of Token in com.attivio.sdk.token
Methods in com.attivio.sdk.token that return Token Modifier and Type Method Description Token
Token. clone()
static Token
Token. createElementAttributeToken(java.lang.String key, java.lang.String value)
Creates an element attribute token.static Token
Token. createEndScopeToken(java.lang.String text)
Creates an end scope token.static Token
Token. createStartScopeToken(java.lang.String text)
Creates a start scope token.Token
Position. endScope(java.lang.String name)
Mark this position as the last position in scopename
.Token
Position. get()
Get the primary Token for this position.Token[]
Position. get(TokenAnnotation annotation)
Get all Tokens for this position that contain the specified annotation.Token
TokenList. getFirst()
Returns the first Token in this TokenList.Token
TokenList. getLast()
Returns the last Token in this TokenList.Token
TokenIterator. getNext()
Gets the next Token, without advancing the pointer.Token
Position. getSurfaceToken()
Returns the first token in this position that is a surface token.Token[]
Position. getTokens()
Gets all Tokens for this Position.Token
ScopeInfo. next()
Token
TokenEnum. next()
Advance to the next element.Token
TokenIterator. next()
Moves the iterator to the next Token in the TokenList and returns that token.Token
TokenEnum. reset(TokenList tokens)
Position this TokenEnum at the beginning oftokens
.Token
TokenEnum. seek(TokenEnum other)
Position this TokenEnum at the same location asother
.Token
TokenSink. startLanguageRegion(java.util.Locale locale)
Start a language region forlocale
.Token
Position. startScope(java.lang.String name)
Mark this position as the first position in scopename
.Token
Position. startScope(java.lang.String name, int increment)
Mark this position as the first position in scopename
.Token
Token. subSequence(int start, int end)
Returns a new character sequence that is a subsequence of this sequence.Token
TokenEnum. token()
Get the current token.Token
Token. toLowerCase()
Convert all characters in this Token to be LowerCased.Token
Token. toUpperCase()
Convert all characters in this Token to be LowerCased.static Token
Token. valueOf(java.lang.Object value)
Return the token representation of an arbitraryvalue
.Methods in com.attivio.sdk.token with parameters of type Token Modifier and Type Method Description void
Position. add(Token t)
Add a Token to this Position.void
TokenIterator. add(Token t, int increment)
Appends a token.void
TokenList. add(Token t, int increment)
Appends a token.void
TokenSink. add(Token t)
Appends a token using the default position increment.abstract void
TokenSink. add(Token t, int increment)
Appends a token.void
TokenListSerializer. addToken(Token token)
TokenList
TokenList. append(Token t)
Appends a token using the default position increment.TokenList
TokenList. append(Token t, int increment)
Appends a token.TokenSink
TokenSink. append(Token t)
Appends a token using the default position increment.TokenSink
TokenSink. append(Token t, int increment)
Appends a token.boolean
Token. bufferEquals(Token token)
Return true if this Token's buffer contains the same text astoken
.int
Token. compareTo(Token other)
int
Token. compareToIgnoreCase(Token other)
Case insensitive equivalent to compareTo.protected boolean
Token. equals(Token other, long annotationMask)
Compare this token toother
.static java.lang.String
TokenList. join(Token[] tokens, int startIndex, int endIndex, char joinChar)
Join the text for alltokens
onjoinChar
.int
Token. offsetGap(Token previous)
Get the offset gap betweenprevious
and this token.void
TokenIterator. set(Token t)
Replaces the current Token with a new Tokenvoid
TokenListSerializer. startPosition(int increment, Token token)
Method parameters in com.attivio.sdk.token with type arguments of type Token Modifier and Type Method Description boolean
Position. containsToken(java.util.function.Predicate<Token> predicate)
Returnstrue
if this position contains a token that matchespredicate
.boolean
TokenList. containsToken(java.util.function.Predicate<Token> predicate)
Returnstrue
if any token matchespredicate
.void
Position. filter(java.util.function.Predicate<Token> predicate)
Remove all tokens from this position that do not matchpredicate
.void
Position. forEach(java.util.function.Consumer<Token> consumer)
Pass each token in this position toconsumer
.void
TokenList. forEachToken(java.util.function.Consumer<Token> consumer)
Pass all tokens toconsumer
.static java.lang.String
TokenList. join(java.lang.Iterable<Token> tokens, char joinChar)
Join the text for alltokens
onjoinChar
.static java.lang.String
TokenList. join(java.util.Iterator<Token> tokens, char joinChar)
Join the text for alltokens
onjoinChar
.int
Position. tokenCount(java.util.function.Predicate<Token> predicate)
Returns the number of tokens in this position that matchpredicate
.Constructors in com.attivio.sdk.token with parameters of type Token Constructor Description TokenList(Token token)
Construct a new TokenList with a singletoken
.TokenList(Token... tokens)
Construct a new TokenList with the specifiedtokens
. -
Uses of Token in com.attivio.util
Methods in com.attivio.util that return Token Modifier and Type Method Description Token
TokenUtils.TokenBuffer. token()
Methods in com.attivio.util with parameters of type Token Modifier and Type Method Description void
TokenUtils.PositionBuffer. accept(Token token)
void
TokenUtils.PositionBuffer. add(Token token)
-