Class DefaultParameterContext

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
      private java.lang.reflect.Parameter parameter  
      private java.util.Optional<java.lang.Object> target  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultParameterContext​(java.lang.reflect.Parameter parameter, int index, java.util.Optional<java.lang.Object> target)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <A extends java.lang.annotation.Annotation>
      java.util.Optional<A>
      findAnnotation​(java.lang.Class<A> annotationType)
      Find the first annotation of annotationType that is either present or meta-present on the AnnotatedElement for this context.
      <A extends java.lang.annotation.Annotation>
      java.util.List<A>
      findRepeatableAnnotations​(java.lang.Class<A> annotationType)
      Find all repeatable annotations of annotationType that are either present or meta-present on the AnnotatedElement for this context.
      int getIndex()
      Get the index of the Parameter for this context within the parameter list of the Executable that declares the parameter.
      java.lang.reflect.Parameter getParameter()
      Get the Parameter for this context.
      java.util.Optional<java.lang.Object> getTarget()
      Get the target on which the Executable that declares the Parameter for this context will be invoked, if available.
      boolean isAnnotated​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      Determine if an annotation of annotationType is either present or meta-present on the AnnotatedElement for this context.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • parameter

        private final java.lang.reflect.Parameter parameter
      • index

        private final int index
      • target

        private final java.util.Optional<java.lang.Object> target
    • Constructor Detail

      • DefaultParameterContext

        DefaultParameterContext​(java.lang.reflect.Parameter parameter,
                                int index,
                                java.util.Optional<java.lang.Object> target)