Package net.bytebuddy.description.type
Class RecordComponentList.AbstractBase<S extends RecordComponentDescription>
java.lang.Object
java.util.AbstractCollection<S>
java.util.AbstractList<S>
net.bytebuddy.matcher.FilterableList.AbstractBase<S,RecordComponentList<S>>
net.bytebuddy.description.type.RecordComponentList.AbstractBase<S>
- Type Parameters:
S
- The type of record component descriptions represented by this list.
- All Implemented Interfaces:
Iterable<S>
,Collection<S>
,List<S>
,SequencedCollection<S>
,RecordComponentList<S>
,FilterableList<S,
RecordComponentList<S>>
- Direct Known Subclasses:
RecordComponentList.Explicit
,RecordComponentList.ForLoadedRecordComponents
,RecordComponentList.ForTokens
,RecordComponentList.TypeSubstituting
,TypePool.Default.LazyTypeDescription.RecordComponentTokenList
- Enclosing interface:
RecordComponentList<T extends RecordComponentDescription>
public abstract static class RecordComponentList.AbstractBase<S extends RecordComponentDescription>
extends FilterableList.AbstractBase<S,RecordComponentList<S>>
implements RecordComponentList<S>
An abstract base implementation of a list of record components.
-
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>> Nested classes/interfaces inherited from interface net.bytebuddy.description.type.RecordComponentList
RecordComponentList.AbstractBase<S extends RecordComponentDescription>, RecordComponentList.Empty<S extends RecordComponentDescription>, RecordComponentList.Explicit<S extends RecordComponentDescription>, RecordComponentList.ForLoadedRecordComponents, RecordComponentList.ForTokens, RecordComponentList.TypeSubstituting
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this list of these record component descriptions resolved to their defined shape.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.Returns a list of all types of the records of this list.protected RecordComponentList
<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, subList
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
asTokenList
public ByteCodeElement.Token.TokenList<RecordComponentDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted byTargetType
.- Specified by:
asTokenList
in interfaceRecordComponentList<S extends RecordComponentDescription>
- Parameters:
matcher
- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asTypeList
Returns a list of all types of the records of this list.- Specified by:
asTypeList
in interfaceRecordComponentList<S extends RecordComponentDescription>
- Returns:
- A list of all types of the records of this list.
-
asDefined
Returns this list of these record component descriptions resolved to their defined shape.- Specified by:
asDefined
in interfaceRecordComponentList<S extends RecordComponentDescription>
- Returns:
- A list of record components in their defined shape.
-
wrap
Description copied from class:FilterableList.AbstractBase
Represents a list of values as an instance of this instance's list type.- Specified by:
wrap
in classFilterableList.AbstractBase<S extends RecordComponentDescription,
RecordComponentList<S extends RecordComponentDescription>> - Parameters:
values
- The values to wrap in an instance of this list's type.- Returns:
- A wrapped instance of the given
values
.
-