Class ParameterList.TypeSubstituting
java.lang.Object
java.util.AbstractCollection<ParameterDescription.InGenericShape>
java.util.AbstractList<ParameterDescription.InGenericShape>
net.bytebuddy.matcher.FilterableList.AbstractBase<ParameterDescription.InGenericShape, ParameterList<ParameterDescription.InGenericShape>>
net.bytebuddy.description.method.ParameterList.AbstractBase<ParameterDescription.InGenericShape>
net.bytebuddy.description.method.ParameterList.TypeSubstituting
- All Implemented Interfaces:
Iterable<ParameterDescription.InGenericShape>, Collection<ParameterDescription.InGenericShape>, List<ParameterDescription.InGenericShape>, SequencedCollection<ParameterDescription.InGenericShape>, ParameterList<ParameterDescription.InGenericShape>, FilterableList<ParameterDescription.InGenericShape, ParameterList<ParameterDescription.InGenericShape>>
- Enclosing interface:
ParameterList<T extends ParameterDescription>
public static class ParameterList.TypeSubstituting
extends ParameterList.AbstractBase<ParameterDescription.InGenericShape>
A list of parameter descriptions that yields
ParameterDescription.TypeSubstituting.-
Nested Class Summary
Nested classes/interfaces inherited from interface FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> Nested classes/interfaces inherited from interface ParameterList
ParameterList.AbstractBase<S>, ParameterList.Empty<S>, ParameterList.Explicit<S>, ParameterList.ForLoadedExecutable<T>, ParameterList.ForTokens, ParameterList.TypeSubstituting -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.InGenericShapeThe method that is declaring the transformed parameters.private final List<? extends ParameterDescription> The untransformed parameters that are represented by this list.private intThe number of parameters of this executable, 0 if the size was not yet computed, or -1 if the list is empty.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(MethodDescription.InGenericShape declaringMethod, List<? extends ParameterDescription> parameterDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a new type substituting parameter list. -
Method Summary
Methods inherited from class ParameterList.AbstractBase
asDefined, asTokenList, asTypeList, hasExplicitMetaData, 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
-
declaringMethod
The method that is declaring the transformed parameters. -
parameterDescriptions
The untransformed parameters that are represented by this list. -
visitor
The visitor to apply to the parameter types before returning them. -
size
private int sizeThe number of parameters of this executable, 0 if the size was not yet computed, or -1 if the list is empty. This avoids recomputation what can lead to an unreasonable performance impact if placed on a hot execution path. This field is not volatile as the result is stable and can be recomputed from different threads.
-
-
Constructor Details
-
TypeSubstituting
public TypeSubstituting(MethodDescription.InGenericShape declaringMethod, List<? extends ParameterDescription> parameterDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a new type substituting parameter list.- Parameters:
declaringMethod- The method that is declaring the transformed parameters.parameterDescriptions- The untransformed parameters 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<ParameterDescription.InGenericShape>- Specified by:
getin classAbstractList<ParameterDescription.InGenericShape>
-
size
public int size()- Specified by:
sizein interfaceCollection<ParameterDescription.InGenericShape>- Specified by:
sizein interfaceList<ParameterDescription.InGenericShape>- Specified by:
sizein classAbstractCollection<ParameterDescription.InGenericShape>
-