Package net.bytebuddy.description.method
Interface ParameterList<T extends ParameterDescription>
-
- Type Parameters:
T
- The type of parameter descriptions represented by this list.
- All Superinterfaces:
java.util.Collection<T>
,FilterableList<T,ParameterList<T>>
,java.lang.Iterable<T>
,java.util.List<T>
- All Known Implementing Classes:
ParameterList.AbstractBase
,ParameterList.Empty
,ParameterList.Explicit
,ParameterList.Explicit.ForTypes
,ParameterList.ForLoadedExecutable
,ParameterList.ForLoadedExecutable.OfConstructor
,ParameterList.ForLoadedExecutable.OfLegacyVmConstructor
,ParameterList.ForLoadedExecutable.OfLegacyVmMethod
,ParameterList.ForLoadedExecutable.OfMethod
,ParameterList.ForTokens
,ParameterList.TypeSubstituting
,Transformer.ForMethod.TransformedMethod.TransformedParameterList
,TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterList
public interface ParameterList<T extends ParameterDescription> extends FilterableList<T,ParameterList<T>>
Represents a list of parameters of a method or a constructor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ParameterList.AbstractBase<S extends ParameterDescription>
An base implementation for aParameterList
.static class
ParameterList.Empty<S extends ParameterDescription>
An empty list of parameters.static class
ParameterList.Explicit<S extends ParameterDescription>
A list of explicitly provided parameter descriptions.static class
ParameterList.ForLoadedExecutable<T>
Represents a list of parameters for an executable, i.e.static class
ParameterList.ForTokens
A list of parameter descriptions for a list of detached tokens.static class
ParameterList.TypeSubstituting
A list of parameter descriptions that yieldsParameterDescription.TypeSubstituting
.
-
Method Summary
All Methods Instance Methods Abstract 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.-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Method Detail
-
asTypeList
TypeList.Generic asTypeList()
Transforms this list of parameters into a list of the types of the represented parameters.- Returns:
- A list of types representing the parameters of this list.
-
asTokenList
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
.- Parameters:
matcher
- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asDefined
ParameterList<ParameterDescription.InDefinedShape> asDefined()
Returns this list of these parameter descriptions resolved to their defined shape.- Returns:
- A list of parameters in their defined shape.
-
hasExplicitMetaData
boolean hasExplicitMetaData()
Checks if all parameters in this list define both an explicit name and an explicit modifier.- Returns:
true
if all parameters in this list define both an explicit name and an explicit modifier.
-
-