Class Parameter<E extends java.lang.reflect.Member>

  • All Implemented Interfaces:
    java.lang.reflect.AnnotatedElement

    public abstract class Parameter<E extends java.lang.reflect.Member>
    extends java.lang.Object
    implements java.lang.reflect.AnnotatedElement
    • Field Detail

      • declaringExecutable

        private final E extends java.lang.reflect.Member declaringExecutable
      • index

        private final int index
    • Constructor Detail

      • Parameter

        private Parameter​(E declaringExecutable,
                          int index)
    • Method Detail

      • getDeclaringExecutable

        public E getDeclaringExecutable()
      • getIndex

        public int getIndex()
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.Class<T> annotationClass)
        Specified by:
        getAnnotation in interface java.lang.reflect.AnnotatedElement
      • getAnnotations

        public java.lang.annotation.Annotation[] getAnnotations()
        Specified by:
        getAnnotations in interface java.lang.reflect.AnnotatedElement
      • getDeclaredAnnotations

        public java.lang.annotation.Annotation[] getDeclaredAnnotations()
        Specified by:
        getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
      • isAnnotationPresent

        public boolean isAnnotationPresent​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
        Specified by:
        isAnnotationPresent in interface java.lang.reflect.AnnotatedElement
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getParameterAnnotations

        protected abstract java.lang.annotation.Annotation[][] getParameterAnnotations()
      • declaredBy

        public static <T> Parameter<java.lang.reflect.Constructor<T>> declaredBy​(java.lang.reflect.Constructor<T> ctor,
                                                                                 int index)
      • declaredBy

        public static Parameter<java.lang.reflect.Method> declaredBy​(java.lang.reflect.Method method,
                                                                     int index)