Class ParameterDescription.ForLoadedParameter.OfConstructor

    • Constructor Detail

      • OfConstructor

        protected OfConstructor​(java.lang.reflect.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 Detail

      • 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.