Package net.bytebuddy.description.method
Class ParameterList.AbstractBase<S extends ParameterDescription>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- 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:
java.lang.Iterable<S>
,java.util.Collection<S>
,java.util.List<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 aParameterList
.
-
-
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.method.ParameterList
ParameterList.AbstractBase<S extends ParameterDescription>, ParameterList.Empty<S extends ParameterDescription>, ParameterList.Explicit<S extends ParameterDescription>, ParameterList.ForLoadedExecutable<T>, ParameterList.ForTokens, ParameterList.TypeSubstituting
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterList<ParameterDescription.InDefinedShape>
asDefined()
Returns this list of these parameter descriptions resolved to their defined shape.ByteCodeElement.Token.TokenList<ParameterDescription.Token>
asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of parameter descriptions into a list of detached tokens.TypeList.Generic
asTypeList()
Transforms this list of parameters into a list of the types of the represented parameters.boolean
hasExplicitMetaData()
Checks if all parameters in this list define both an explicit name and an explicit modifier.protected ParameterList<S>
wrap(java.util.List<S> values)
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 net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Method Detail
-
hasExplicitMetaData
public boolean hasExplicitMetaData()
Checks if all parameters in this list define both an explicit name and an explicit modifier.- Specified by:
hasExplicitMetaData
in interfaceParameterList<S extends ParameterDescription>
- Returns:
true
if 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:
asTokenList
in interfaceParameterList<S extends ParameterDescription>
- Parameters:
matcher
- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asTypeList
public TypeList.Generic asTypeList()
Transforms this list of parameters into a list of the types of the represented parameters.- Specified by:
asTypeList
in interfaceParameterList<S extends ParameterDescription>
- Returns:
- A list of types representing the parameters of this list.
-
asDefined
public ParameterList<ParameterDescription.InDefinedShape> asDefined()
Returns this list of these parameter descriptions resolved to their defined shape.- Specified by:
asDefined
in interfaceParameterList<S extends ParameterDescription>
- Returns:
- A list of parameters in their defined shape.
-
wrap
protected ParameterList<S> wrap(java.util.List<S> values)
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 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
.
-
-