Class ParameterList.ForLoadedExecutable<T>

    • Constructor Detail

      • ForLoadedExecutable

        protected ForLoadedExecutable​(T executable,
                                      ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
        Creates a new description for a loaded executable.
        Parameters:
        executable - The executable for which a parameter list is represented.
        parameterAnnotationSource - The parameter annotation source to query.
    • Method Detail

      • of

        public static ParameterList<ParameterDescription.InDefinedShape> of​(java.lang.reflect.Constructor<?> constructor)
        Creates a new list that describes the parameters of the given Constructor.
        Parameters:
        constructor - The constructor for which the parameters should be described.
        Returns:
        A list describing the constructor's parameters.
      • of

        public static ParameterList<ParameterDescription.InDefinedShape> of​(java.lang.reflect.Method method)
        Creates a new list that describes the parameters of the given Method.
        Parameters:
        method - The method for which the parameters should be described.
        Returns:
        A list describing the method's parameters.
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T>
        Specified by:
        size in interface java.util.List<T>
        Specified by:
        size in class java.util.AbstractCollection<ParameterDescription.InDefinedShape>