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

      • doPrivileged

        @Enhance
        private static <T> T doPrivileged​(java.security.PrivilegedAction<T> action)
        A proxy for java.security.AccessController#doPrivileged that is activated if available.
        Type Parameters:
        T - The type of the action's resolved value.
        Parameters:
        action - The action to execute from a privileged context.
        Returns:
        The action's resolved value.
      • 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>