Package net.bytebuddy.description.method
Interface ParameterDescription
- All Superinterfaces:
AnnotationSource
,ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,
,ParameterDescription.Token> ModifierReviewable
,ModifierReviewable.ForParameterDescription
,NamedElement
,NamedElement.WithOptionalName
,NamedElement.WithRuntimeName
- All Known Subinterfaces:
ParameterDescription.InDefinedShape
,ParameterDescription.InGenericShape
- All Known Implementing Classes:
ParameterDescription.AbstractBase
,ParameterDescription.ForLoadedParameter
,ParameterDescription.ForLoadedParameter.OfConstructor
,ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor
,ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
,ParameterDescription.ForLoadedParameter.OfMethod
,ParameterDescription.InDefinedShape.AbstractBase
,ParameterDescription.Latent
,ParameterDescription.TypeSubstituting
,Transformer.ForMethod.TransformedMethod.TransformedParameter
,TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterDescription
public interface ParameterDescription
extends AnnotationSource, NamedElement.WithRuntimeName, NamedElement.WithOptionalName, ModifierReviewable.ForParameterDescription, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>
Description of the parameter of a Java method or constructor.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A base implementation of a method parameter description.static class
Description of a loaded parameter with support for the information exposed byjava.lang.reflect.Parameter
.static interface
Represents a parameter in its defined shape, i.e.static interface
Represents a parameter description in its generic shape, i.e.static class
A latent description of a parameter that is not attached to a method or constructor.static class
A token representing a parameter's properties detached from a type.static class
A parameter description that represents a given parameter but with a substituted parameter type.Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The prefix for names of an unnamed parameter.Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
Method Summary
Modifier and TypeMethodDescriptionReturns the method that declares this parameter.int
getIndex()
Returns this parameter's index.int
Returns the offset to the parameter value within the local method variable.getType()
Returns the type of this parameter.boolean
Checks if this parameter has an explicit modifier.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotations
Methods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asDefined, asToken
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSynthetic
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningState, isMandated
Methods inherited from interface net.bytebuddy.description.NamedElement
getActualName
Methods inherited from interface net.bytebuddy.description.NamedElement.WithOptionalName
isNamed
Methods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getInternalName, getName
-
Field Details
-
NAME_PREFIX
The prefix for names of an unnamed parameter.- See Also:
-
-
Method Details
-
getType
TypeDescription.Generic getType()Returns the type of this parameter.- Returns:
- The type of this parameter.
-
getDeclaringMethod
MethodDescription getDeclaringMethod()Returns the method that declares this parameter.- Returns:
- The method that declares this parameter.
-
getIndex
int getIndex()Returns this parameter's index.- Returns:
- The index of this parameter.
-
hasModifiers
boolean hasModifiers()Checks if this parameter has an explicit modifier. A parameter without a modifier is simply treated as if it had a modifier of zero.- Returns:
true
if this parameter defines explicit modifiers.
-
getOffset
int getOffset()Returns the offset to the parameter value within the local method variable.- Returns:
- The offset of this parameter's value.
-