Package net.bytebuddy.description.type
Class RecordComponentList.TypeSubstituting
java.lang.Object
java.util.AbstractCollection<RecordComponentDescription.InGenericShape>
java.util.AbstractList<RecordComponentDescription.InGenericShape>
net.bytebuddy.matcher.FilterableList.AbstractBase<RecordComponentDescription.InGenericShape,RecordComponentList<RecordComponentDescription.InGenericShape>>
net.bytebuddy.description.type.RecordComponentList.AbstractBase<RecordComponentDescription.InGenericShape>
net.bytebuddy.description.type.RecordComponentList.TypeSubstituting
- All Implemented Interfaces:
Iterable<RecordComponentDescription.InGenericShape>,Collection<RecordComponentDescription.InGenericShape>,List<RecordComponentDescription.InGenericShape>,SequencedCollection<RecordComponentDescription.InGenericShape>,RecordComponentList<RecordComponentDescription.InGenericShape>,FilterableList<RecordComponentDescription.InGenericShape,RecordComponentList<RecordComponentDescription.InGenericShape>>
- Enclosing interface:
RecordComponentList<T extends RecordComponentDescription>
public static class RecordComponentList.TypeSubstituting
extends RecordComponentList.AbstractBase<RecordComponentDescription.InGenericShape>
A type-substituting list of record component descriptions.
-
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
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.GenericThe method that is declaring the transformed record components.private final List<? extends RecordComponentDescription> The untransformed record components that are represented by this list.private final TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> The visitor to apply to the parameter types before returning them.Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionTypeSubstituting(TypeDescription.Generic declaringType, List<? extends RecordComponentDescription> recordComponentDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a type substituting list of record component descriptions. -
Method Summary
Methods inherited from class net.bytebuddy.description.type.RecordComponentList.AbstractBase
asDefined, asTokenList, asTypeList, wrapMethods 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 net.bytebuddy.matcher.FilterableList
filter, getOnly, subListMethods 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
-
declaringType
The method that is declaring the transformed record components. -
recordComponentDescriptions
The untransformed record components that are represented by this list. -
visitor
The visitor to apply to the parameter types before returning them.
-
-
Constructor Details
-
TypeSubstituting
public TypeSubstituting(TypeDescription.Generic declaringType, List<? extends RecordComponentDescription> recordComponentDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a type substituting list of record component descriptions.- Parameters:
declaringType- The method that is declaring the transformed record components.recordComponentDescriptions- The untransformed record components that are represented by this list.visitor- The visitor to apply to the parameter types before returning them.
-
-
Method Details
-
get
- Specified by:
getin interfaceList<RecordComponentDescription.InGenericShape>- Specified by:
getin classAbstractList<RecordComponentDescription.InGenericShape>
-
size
public int size()- Specified by:
sizein interfaceCollection<RecordComponentDescription.InGenericShape>- Specified by:
sizein interfaceList<RecordComponentDescription.InGenericShape>- Specified by:
sizein classAbstractCollection<RecordComponentDescription.InGenericShape>
-