Class ParameterDescription.ForLoadedParameter.OfConstructor

All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>, ParameterDescription, ParameterDescription.InDefinedShape, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Enclosing class:
ParameterDescription.ForLoadedParameter<T extends AccessibleObject>

protected static class ParameterDescription.ForLoadedParameter.OfConstructor extends ParameterDescription.ForLoadedParameter<Constructor<?>>
A description of a loaded Constructor parameter for a modern VM.
  • Constructor Details

    • OfConstructor

      protected OfConstructor(Constructor<?> constructor, int index, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
      Creates a new description for a loaded constructor.
      Parameters:
      constructor - The constructor for which a parameter is represented.
      index - The index of the parameter.
      parameterAnnotationSource - The parameter annotation source to query.
  • Method Details

    • getDeclaringMethod

      public MethodDescription.InDefinedShape getDeclaringMethod()
      Returns the method that declares this parameter.
      Returns:
      The method that declares this parameter.
    • getType

      public TypeDescription.Generic getType()
      Returns the type of this parameter.
      Returns:
      The type of this parameter.
    • getDeclaredAnnotations

      public AnnotationList getDeclaredAnnotations()
      Returns a list of annotations that are declared by this instance.
      Returns:
      A list of declared annotations.