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 classA base implementation of a method parameter description.static classDescription of a loaded parameter with support for the information exposed byjava.lang.reflect.Parameter.static interfaceRepresents a parameter in its defined shape, i.e.static interfaceRepresents a parameter description in its generic shape, i.e.static classA latent description of a parameter that is not attached to a method or constructor.static classA token representing a parameter's properties detached from a type.static classA 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.ExplicitNested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationNested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix for names of an unnamed parameter.Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASKFields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME -
Method Summary
Modifier and TypeMethodDescriptionReturns the method that declares this parameter.intgetIndex()Returns this parameter's index.intReturns the offset to the parameter value within the local method variable.getType()Returns the type of this parameter.booleanChecks if this parameter has an explicit modifier.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotationsMethods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asDefined, asTokenMethods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningState, isMandatedMethods inherited from interface net.bytebuddy.description.NamedElement
getActualNameMethods inherited from interface net.bytebuddy.description.NamedElement.WithOptionalName
isNamedMethods 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:
trueif 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.
-