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>>
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends S> |
tokens
The tokens that this list represents.
|
Constructor and Description |
---|
TokenList(java.util.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(java.util.List<S> values)
Represents a list of values as an instance of this instance's list type.
|
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final java.util.List<? extends S extends ByteCodeElement.Token<S>> tokens
public TokenList(S... token)
token
- The tokens that this list represents.public TokenList(java.util.List<? extends S> tokens)
tokens
- 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(java.util.List<S> values)
FilterableList.AbstractBase
wrap
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 java.util.List<S extends ByteCodeElement.Token<S>>
get
in class java.util.AbstractList<S extends ByteCodeElement.Token<S>>
public int size()
size
in interface java.util.Collection<S extends ByteCodeElement.Token<S>>
size
in interface java.util.List<S extends ByteCodeElement.Token<S>>
size
in class java.util.AbstractCollection<S extends ByteCodeElement.Token<S>>