public final class TokenList extends Object implements Serializable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
TokenList |
clone() |
static TokenList |
empty()
Constructs an instance containing no tokens.
|
boolean |
equals(Object obj) |
int |
hashCode() |
List<Token> |
toList()
Converts this token list to a
List. |
String |
toString()
Gets a printable representation of the list, in which the tokens are
printed in order, with a single space character between each pair of
adjacent tokens.
|
static TokenList |
valueOf(String value)
Constructs a new instance from a string.
|
public String toString()
public List<Token> toList()
List.
Manipulating the returned list (e.g. adding/removing elements) has no effect on this token list.
public static TokenList valueOf(String value)
value - the subject stringpublic static TokenList empty()
Copyright © 2014–2016. All rights reserved.