public interface Token
| Modifier and Type | Method and Description |
|---|---|
default String |
asString()
Convert this token into corresponding string.
|
void |
asText(net.lecousin.framework.text.IString s)
Convert this token into corresponding string.
|
static void |
asText(List<Token> tokens,
net.lecousin.framework.text.IString s)
Convert the given tokens into corresponding string.
|
static void |
removeComments(List<Token> tokens)
Remove comment tokens.
|
static List<List<Token>> |
splitBySpecialCharacter(List<Token> tokens,
char sc)
Split into lists of tokens, using the given special character.
|
int |
textLength()
Calculate the length of this token if converted into a string.
|
static int |
textLength(List<Token> tokens)
Calculate the length of the given tokens if converted into a string.
|
static String |
toString(List<Token> tokens)
Convert the given tokens into corresponding string.
|
static void |
trim(List<Token> tokens)
Remove any leading or trailing space tokens.
|
int textLength()
static int textLength(List<Token> tokens)
void asText(net.lecousin.framework.text.IString s)
static void asText(List<Token> tokens, net.lecousin.framework.text.IString s)
default String asString()
static String toString(List<Token> tokens)
Copyright © 2020. All rights reserved.