public final class SemanticHighlightingTokens
extends java.lang.Object
base64
representation.Modifier and Type | Class and Description |
---|---|
static class |
SemanticHighlightingTokens.Token
The bare minimum representation of a semantic highlighting token.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<SemanticHighlightingTokens.Token> |
decode(java.lang.String tokens)
Decodes the tokens string and returns with a list of semantic highlighting
tokens.
|
static java.lang.String |
encode(java.lang.Iterable<? extends SemanticHighlightingTokens.Token> tokens)
Encodes the iterable of tokens into a compact,
base64 string. |
public static java.lang.String encode(java.lang.Iterable<? extends SemanticHighlightingTokens.Token> tokens)
base64
string. Returns
with an empty string if the tokens
argument is null
or empty.public static java.util.List<SemanticHighlightingTokens.Token> decode(java.lang.String tokens)
null
or empty.