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 FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> Nested classes/interfaces inherited from interface RecordComponentList
RecordComponentList.AbstractBase<S>, RecordComponentList.Empty<S>, RecordComponentList.Explicit<S>, 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 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 RecordComponentList.AbstractBase
asDefined, asTokenList, asTypeList, wrapMethods 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 FilterableList
filter, getOnly, subListMethods 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
-
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>
-