S - The actual token type.public static class ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>> extends FilterableList.AbstractBase<S,ByteCodeElement.Token.TokenList<S>>
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>, FilterableList.Empty<T,S extends FilterableList<T,S>>modCount| Constructor and Description |
|---|
TokenList(List<? extends S> tokens)
Creates a list of tokens.
|
TokenList(S... token)
Creates a list of tokens.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeElement.Token.TokenList<S> |
accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms all tokens that are represented by this list.
|
S |
get(int index) |
int |
size() |
protected ByteCodeElement.Token.TokenList<S> |
wrap(List<S> values)
Represents a list of values as an instance of this instance's list type.
|
filter, getOnly, subListadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic TokenList(S... token)
token - The tokens that this list represents.public ByteCodeElement.Token.TokenList<S> accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
visitor - The visitor to apply to all tokens.protected ByteCodeElement.Token.TokenList<S> wrap(List<S> values)
FilterableList.AbstractBasewrap in class FilterableList.AbstractBase<S extends ByteCodeElement.Token<S>,ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>>values - The values to wrap in an instance of this list's type.values.public S get(int index)
get in interface List<S extends ByteCodeElement.Token<S>>get in class AbstractList<S extends ByteCodeElement.Token<S>>public int size()
size in interface Collection<S extends ByteCodeElement.Token<S>>size in interface List<S extends ByteCodeElement.Token<S>>size in class AbstractCollection<S extends ByteCodeElement.Token<S>>Copyright © 2014–2023. All rights reserved.