Class ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>
java.lang.Object
java.util.AbstractCollection<S>
java.util.AbstractList<S>
net.bytebuddy.matcher.FilterableList.AbstractBase<S, ByteCodeElement.Token.TokenList<S>>
net.bytebuddy.description.ByteCodeElement.Token.TokenList<S>
- Type Parameters:
S- The actual token type.
- All Implemented Interfaces:
Iterable<S>, Collection<S>, List<S>, SequencedCollection<S>, FilterableList<S, ByteCodeElement.Token.TokenList<S>>
- Enclosing interface:
ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>
public static class ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>
extends FilterableList.AbstractBase<S, ByteCodeElement.Token.TokenList<S>>
A list of tokens.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> -
Field Summary
FieldsModifier and TypeFieldDescriptionThe tokens that this list represents.Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Transforms all tokens that are represented by this list.get(int index) intsize()protected ByteCodeElement.Token.TokenList<S> Represents a list of values as an instance of this instance's list type.Methods inherited from class FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, toArray, toArray
-
Field Details
-
tokens
The tokens that this list represents.
-
-
Constructor Details
-
TokenList
Creates a list of tokens.- Parameters:
token- The tokens that this list represents.
-
TokenList
-
-
Method Details
-
accept
public ByteCodeElement.Token.TokenList<S> accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Transforms all tokens that are represented by this list.- Parameters:
visitor- The visitor to apply to all tokens.- Returns:
- A list containing the transformed tokens.
-
wrap
Description copied from class:FilterableList.AbstractBaseRepresents a list of values as an instance of this instance's list type.- Specified by:
wrapin classFilterableList.AbstractBase<S extends ByteCodeElement.Token<S>, ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>>- Parameters:
values- The values to wrap in an instance of this list's type.- Returns:
- A wrapped instance of the given
values.
-
get
- Specified by:
getin interfaceList<S extends ByteCodeElement.Token<S>>- Specified by:
getin classAbstractList<S extends ByteCodeElement.Token<S>>
-
size
public int size()- Specified by:
sizein interfaceCollection<S extends ByteCodeElement.Token<S>>- Specified by:
sizein interfaceList<S extends ByteCodeElement.Token<S>>- Specified by:
sizein classAbstractCollection<S extends ByteCodeElement.Token<S>>
-