Class ParameterDescription.ForLoadedParameter.OfMethod

    • Constructor Detail

      • OfMethod

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