Interface ParameterDeclaration

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.reflect.AnnotatedElement getAnnotatedElement()
      {@return the {@link AnnotatedElement} that declares the parameter; never {@code null}}
      int getParameterIndex()
      {@return the index of the parameter}
      java.util.Optional<java.lang.String> getParameterName()
      {@return the name of the parameter, if available; never {@code null} but potentially empty}
      java.lang.Class<?> getParameterType()
      {@return the type of the parameter; never {@code null}}
    • Method Detail

      • getAnnotatedElement

        java.lang.reflect.AnnotatedElement getAnnotatedElement()
        {@return the {@link AnnotatedElement} that declares the parameter; never {@code null}}

        This is either a Parameter or a Field.

      • getParameterType

        java.lang.Class<?> getParameterType()
        {@return the type of the parameter; never {@code null}}
      • getParameterIndex

        int getParameterIndex()
        {@return the index of the parameter}
      • getParameterName

        java.util.Optional<java.lang.String> getParameterName()
        {@return the name of the parameter, if available; never {@code null} but potentially empty}