Package net.bytebuddy.description.method
Interface ParameterDescription
-
- All Superinterfaces:
AnnotationSource,ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>,ModifierReviewable,ModifierReviewable.ForParameterDescription,ModifierReviewable.OfMandatable,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 Classes Modifier and Type Interface Description static classParameterDescription.AbstractBaseA base implementation of a method parameter description.static classParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject>Description of a loaded parameter with support for the information exposed byjava.lang.reflect.Parameter.static interfaceParameterDescription.InDefinedShapeRepresents a parameter in its defined shape, i.e.static interfaceParameterDescription.InGenericShapeRepresents a parameter description in its generic shape, i.e.static classParameterDescription.LatentA latent description of a parameter that is not attached to a method or constructor.static classParameterDescription.TokenA token representing a parameter's properties detached from a type.static classParameterDescription.TypeSubstitutingA 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.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME_PREFIXThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescriptiongetDeclaringMethod()Returns the method that declares this parameter.intgetIndex()Returns this parameter's index.intgetOffset()Returns the offset to the parameter value within the local method variable.TypeDescription.GenericgetType()Returns the type of this parameter.booleanhasModifiers()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
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfMandatable
getMandate, 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 Detail
-
NAME_PREFIX
static final java.lang.String NAME_PREFIX
The prefix for names of an unnamed parameter.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-