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.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeElement.Token.TokenList<S> |
accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> 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, 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
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public ByteCodeElement.Token.TokenList<S> accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
visitor
- The visitor to apply to all tokens.protected ByteCodeElement.Token.TokenList<S> wrap(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 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–2015. All rights reserved.