Class ParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject>

    • Constructor Detail

      • ForLoadedParameter

        protected ForLoadedParameter​(T executable,
                                     int index,
                                     ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
        Creates a new description for a loaded parameter.
        Parameters:
        executable - The java.lang.reflect.Executable for which the parameter types are described.
        index - The parameter's index.
        parameterAnnotationSource - The parameter annotation source to query.
    • Method Detail

      • getIndex

        public int getIndex()
        Returns this parameter's index.
        Returns:
        The index of this parameter.
      • isNamed

        public boolean isNamed()
        Returns true if this element has an explicit name.
        Returns:
        true if this element has an explicit name.
      • hasModifiers

        public boolean hasModifiers()
        Checks if this parameter has an explicit modifier. A parameter without a modifier is simply treated as if it had a modifier of zero.
        Returns:
        true if this parameter defines explicit modifiers.