Class ParameterList.AbstractBase<S extends ParameterDescription>
java.lang.Object
java.util.AbstractCollection<S>
java.util.AbstractList<S>
net.bytebuddy.matcher.FilterableList.AbstractBase<S, ParameterList<S>>
net.bytebuddy.description.method.ParameterList.AbstractBase<S>
- Type Parameters:
S- The type of parameter descriptions represented by this list.
- All Implemented Interfaces:
Iterable<S>, Collection<S>, List<S>, SequencedCollection<S>, ParameterList<S>, FilterableList<S, ParameterList<S>>
- Direct Known Subclasses:
ParameterList.Explicit, ParameterList.Explicit.ForTypes, ParameterList.ForLoadedExecutable, ParameterList.ForLoadedExecutable.OfLegacyVmConstructor, ParameterList.ForLoadedExecutable.OfLegacyVmMethod, ParameterList.ForTokens, ParameterList.TypeSubstituting, Transformer.ForMethod.TransformedMethod.TransformedParameterList, TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterList
- Enclosing interface:
ParameterList<T extends ParameterDescription>
public abstract static class ParameterList.AbstractBase<S extends ParameterDescription>
extends FilterableList.AbstractBase<S, ParameterList<S>>
implements ParameterList<S>
An base implementation for a
ParameterList.-
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
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this list of these parameter descriptions resolved to their defined shape.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens.Transforms this list of parameters into a list of the types of the represented parameters.booleanChecks if all parameters in this list define both an explicit name and an explicit modifier.protected ParameterList<S> Represents a list of values as an instance of this instance's list type.Methods inherited from class FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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, 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
-
hasExplicitMetaData
public boolean hasExplicitMetaData()Checks if all parameters in this list define both an explicit name and an explicit modifier.- Specified by:
hasExplicitMetaDatain interfaceParameterList<S extends ParameterDescription>- Returns:
trueif all parameters in this list define both an explicit name and an explicit modifier.
-
asTokenList
public ByteCodeElement.Token.TokenList<ParameterDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted byTargetType.- Specified by:
asTokenListin interfaceParameterList<S extends ParameterDescription>- Parameters:
matcher- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asTypeList
Transforms this list of parameters into a list of the types of the represented parameters.- Specified by:
asTypeListin interfaceParameterList<S extends ParameterDescription>- Returns:
- A list of types representing the parameters of this list.
-
asDefined
Returns this list of these parameter descriptions resolved to their defined shape.- Specified by:
asDefinedin interfaceParameterList<S extends ParameterDescription>- Returns:
- A list of parameters in their defined shape.
-
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 ParameterDescription, ParameterList<S extends ParameterDescription>>- Parameters:
values- The values to wrap in an instance of this list's type.- Returns:
- A wrapped instance of the given
values.
-