Class AnnotatedCaptureTypeImpl

    • Field Detail

      • wildcard

        private final java.lang.reflect.AnnotatedWildcardType wildcard
      • variable

        private final java.lang.reflect.AnnotatedTypeVariable variable
      • lowerBounds

        private final java.lang.reflect.AnnotatedType[] lowerBounds
      • upperBounds

        private java.lang.reflect.AnnotatedType[] upperBounds
      • declaredAnnotations

        private final java.lang.annotation.Annotation[] declaredAnnotations
    • Constructor Detail

      • AnnotatedCaptureTypeImpl

        AnnotatedCaptureTypeImpl​(java.lang.reflect.AnnotatedWildcardType wildcard,
                                 java.lang.reflect.AnnotatedTypeVariable variable)
      • AnnotatedCaptureTypeImpl

        AnnotatedCaptureTypeImpl​(CaptureType type,
                                 java.lang.reflect.AnnotatedWildcardType wildcard,
                                 java.lang.reflect.AnnotatedTypeVariable variable)
      • AnnotatedCaptureTypeImpl

        AnnotatedCaptureTypeImpl​(CaptureType type,
                                 java.lang.reflect.AnnotatedWildcardType wildcard,
                                 java.lang.reflect.AnnotatedTypeVariable variable,
                                 java.lang.reflect.AnnotatedType[] upperBounds,
                                 java.lang.annotation.Annotation[] annotations)
      • AnnotatedCaptureTypeImpl

        AnnotatedCaptureTypeImpl​(CaptureType type,
                                 java.lang.reflect.AnnotatedWildcardType wildcard,
                                 java.lang.reflect.AnnotatedTypeVariable variable,
                                 java.lang.reflect.AnnotatedType[] lowerBounds,
                                 java.lang.reflect.AnnotatedType[] upperBounds,
                                 java.lang.annotation.Annotation[] annotations)
    • Method Detail

      • init

        void init​(VarMap varMap)
        Initialize this CaptureTypeImpl. This is needed for type variable bounds referring to each other: we need the capture of the argument.
      • getDeclaredAnnotations

        public java.lang.annotation.Annotation[] getDeclaredAnnotations()
        Specified by:
        getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getDeclaredAnnotations in class AnnotatedTypeImpl
      • getAnnotatedUpperBounds

        public java.lang.reflect.AnnotatedType[] getAnnotatedUpperBounds()
        Returns an array of Type objects representing the upper bound(s) of this capture. This includes both the upper bound of a ? extends wildcard, and the bounds declared with the type variable. References to other (or the same) type variables in bounds coming from the type variable are replaced by their matching capture.
        Specified by:
        getAnnotatedUpperBounds in interface AnnotatedCaptureType
      • getAnnotatedLowerBounds

        public java.lang.reflect.AnnotatedType[] getAnnotatedLowerBounds()
        Returns an array of Type objects representing the lower bound(s) of this type variable. This is the bound of a ? super wildcard. This normally contains only one or no types; it is an array for consistency with WildcardType.getLowerBounds().
        Specified by:
        getAnnotatedLowerBounds in interface AnnotatedCaptureType