Class ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor

    • Constructor Detail

      • OfLegacyVmConstructor

        protected OfLegacyVmConstructor​(java.lang.reflect.Constructor<?> constructor,
                                        int index,
                                        java.lang.Class<?>[] parameterType,
                                        java.lang.annotation.Annotation[][] parameterAnnotation)
        Creates a legacy representation of a method's parameter.
        Parameters:
        constructor - The constructor that declares this parameter.
        index - The index of this parameter.
        parameterType - The type erasures of the represented method.
        parameterAnnotation - An array of all parameter annotations of the represented method.
    • Method Detail

      • getIndex

        public int getIndex()
        Description copied from interface: ParameterDescription
        Returns this parameter's index.
        Returns:
        The index of this parameter.
      • isNamed

        public boolean isNamed()
        Description copied from interface: NamedElement.WithOptionalName
        Returns true if this element has an explicit name.
        Returns:
        true if this element has an explicit name.
      • hasModifiers

        public boolean hasModifiers()
        Description copied from interface: ParameterDescription
        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.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Description copied from interface: AnnotationSource
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.