Class ParameterDescription.ForLoadedParameter.OfMethod
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.method.ParameterDescription.AbstractBase
net.bytebuddy.description.method.ParameterDescription.InDefinedShape.AbstractBase
net.bytebuddy.description.method.ParameterDescription.ForLoadedParameter<Method>
net.bytebuddy.description.method.ParameterDescription.ForLoadedParameter.OfMethod
- All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape, ParameterDescription.Token>, ParameterDescription, ParameterDescription.InDefinedShape, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable, NamedElement, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
- Enclosing class:
ParameterDescription.ForLoadedParameter<T extends AccessibleObject>
protected static class ParameterDescription.ForLoadedParameter.OfMethod
extends ParameterDescription.ForLoadedParameter<Method>
A description of a loaded
Method parameter for a modern VM.-
Nested Class Summary
Nested classes/interfaces inherited from class ParameterDescription.ForLoadedParameter
ParameterDescription.ForLoadedParameter.OfConstructor, ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor, ParameterDescription.ForLoadedParameter.OfLegacyVmMethod, ParameterDescription.ForLoadedParameter.OfMethod, ParameterDescription.ForLoadedParameter.Parameter, ParameterDescription.ForLoadedParameter.ParameterAnnotationSourceNested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatableNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface ParameterDescription
ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter<T>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstitutingNested classes/interfaces inherited from interface ParameterDescription.InDefinedShape
ParameterDescription.InDefinedShape.AbstractBase -
Field Summary
Fields inherited from class ParameterDescription.ForLoadedParameter
executable, index, parameterAnnotationSourceFields inherited from interface ModifierReviewable
EMPTY_MASKFields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface ParameterDescription
NAME_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOfMethod(Method method, int index, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource) Creates a new description for a loaded method. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotations that are declared by this instance.Returns the method that declares this parameter.getType()Returns the type of this parameter.Methods inherited from class ParameterDescription.ForLoadedParameter
getIndex, getModifiers, getName, hasModifiers, isNamedMethods inherited from class ParameterDescription.InDefinedShape.AbstractBase
asDefinedMethods inherited from class ParameterDescription.AbstractBase
asToken, equals, getActualName, getInternalName, getOffset, hashCode, toStringMethods inherited from class ModifierReviewable.AbstractBase
getEnumerationState, getFieldManifestation, getFieldPersistence, getMandate, getMethodManifestation, getMethodStrictness, getOpenness, getOwnership, getParameterManifestation, getProvisioningState, getRequiredPhase, getSynchronizationState, getSyntheticState, getTransitivity, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isOpen, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStaticPhase, isStrict, isSynchronized, isSynthetic, isTransient, isTransitive, isVarArgs, isVolatileMethods inherited from interface ByteCodeElement.TypeDependant
asTokenMethods inherited from interface ModifierReviewable
getSyntheticState, isFinal, isSyntheticMethods inherited from interface ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningStateMethods inherited from interface ModifierReviewable.OfMandatable
getMandate, isMandatedMethods inherited from interface NamedElement
getActualNameMethods inherited from interface NamedElement.WithRuntimeName
getInternalNameMethods inherited from interface ParameterDescription
getOffset
-
Constructor Details
-
OfMethod
protected OfMethod(Method method, int index, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource) Creates a new description for a loaded method.- Parameters:
method- The method for which a parameter is represented.index- The index of the parameter.parameterAnnotationSource- The parameter annotation source to query.
-
-
Method Details
-
getDeclaringMethod
Returns the method that declares this parameter.- Returns:
- The method that declares this parameter.
-
getType
Returns the type of this parameter.- Returns:
- The type of this parameter.
-
getDeclaredAnnotations
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-