Package net.bytebuddy.description
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 net.bytebuddy.matcher.FilterableList
FilterableList.AbstractBase<T,S extends FilterableList<T, S>>, FilterableList.Empty<T, S extends FilterableList<T, S>> -
Field Summary
FieldsModifier and TypeFieldDescriptionThe tokens that this list represents.Fields inherited from class java.util.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 net.bytebuddy.matcher.FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.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
Creates a list of tokens.- Parameters:
tokens- The tokens that this list represents.
-
-
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>>
-