Class ParameterDescription.ForLoadedParameter.OfLegacyVmMethod

    • Constructor Detail

      • OfLegacyVmMethod

        protected OfLegacyVmMethod​(java.lang.reflect.Method method,
                                   int index,
                                   java.lang.Class<?>[] parameterType,
                                   java.lang.annotation.Annotation[][] parameterAnnotation)
        Creates a legacy representation of a method's parameter.
        Parameters:
        method - The method that declares this parameter.
        index - The index of this parameter.
        parameterType - The type erasures of the represented method.
        parameterAnnotation - The annotations of the represented method's parameters.
    • 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.