public class Tokens extends ArrayList<Token>
modCount| Constructor and Description |
|---|
Tokens() |
| Modifier and Type | Method and Description |
|---|---|
void |
fixRanges(List<Integer> markerPositions) |
Tokens |
getFilteredList(String... tokenNames)
Return a list of Token objects.
|
static String |
getTokenDescription(int tokenId) |
static String |
getTokenDescription(String tokenName) |
static int |
getTokenId(String tokenName) |
static List<Integer> |
getTokenIDs()
Gets list of IDs of all tokens.
|
static List<Integer> |
getTokenIDs(List<String> tokenNames)
Gets list of IDs of the given tokens.
|
static Collection<TokenItem> |
getTokenItems() |
static String |
getTokenName(int tokenId) |
static List<String> |
getTokenNames()
Gets list of names of all tokens.
|
static String |
getTokenNamesStr() |
void |
setImmutable(boolean immutable) |
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic Tokens getFilteredList(String... tokenNames)
tokenNames - Optional array of strings with token name constants.public String toString()
toString in class AbstractCollection<Token>public static int getTokenId(String tokenName)
public static String getTokenName(int tokenId)
public static String getTokenDescription(int tokenId)
public static String getTokenNamesStr()
public static Collection<TokenItem> getTokenItems()
public static List<String> getTokenNames()
public static List<Integer> getTokenIDs()
public static List<Integer> getTokenIDs(List<String> tokenNames)
public void setImmutable(boolean immutable)
Copyright © 2021. All rights reserved.