Class AnnotatedCaptureTypeImpl
java.lang.Object
io.leangen.geantyref.AnnotatedTypeImpl
io.leangen.geantyref.AnnotatedCaptureTypeImpl
- All Implemented Interfaces:
AnnotatedCaptureType, AnnotatedElement, AnnotatedType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Annotation[]private final AnnotatedType[]private final CaptureTypeprivate AnnotatedType[]private final AnnotatedTypeVariableprivate final AnnotatedWildcardTypeFields inherited from class AnnotatedTypeImpl
annotations, ownerType -
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedCaptureTypeImpl(CaptureType type, AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable) AnnotatedCaptureTypeImpl(CaptureType type, AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable, AnnotatedType[] upperBounds, Annotation[] annotations) AnnotatedCaptureTypeImpl(CaptureType type, AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable, AnnotatedType[] lowerBounds, AnnotatedType[] upperBounds, Annotation[] annotations) AnnotatedCaptureTypeImpl(AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable) -
Method Summary
Modifier and TypeMethodDescriptionReturns an array of Type objects representing the lower bound(s) of this type variable.Returns an array of Type objects representing the upper bound(s) of this capture.(package private) voidInitialize this CaptureTypeImpl.voidsetAnnotatedUpperBounds(AnnotatedType[] upperBounds) (package private) AnnotatedCaptureTypeImplsetAnnotations(Annotation[] annotations) Methods inherited from class AnnotatedTypeImpl
annotationsString, equals, getAnnotatedOwnerType, getAnnotation, getAnnotations, getType, hashCode, toMap, toString, typesStringMethods inherited from interface AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresentMethods inherited from interface AnnotatedType
getAnnotatedOwnerType, getAnnotation, getAnnotations, getType
-
Field Details
-
wildcard
-
variable
-
lowerBounds
-
upperBounds
-
type
-
declaredAnnotations
-
-
Constructor Details
-
AnnotatedCaptureTypeImpl
AnnotatedCaptureTypeImpl(AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable) -
AnnotatedCaptureTypeImpl
AnnotatedCaptureTypeImpl(CaptureType type, AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable) -
AnnotatedCaptureTypeImpl
AnnotatedCaptureTypeImpl(CaptureType type, AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable, AnnotatedType[] upperBounds, Annotation[] annotations) -
AnnotatedCaptureTypeImpl
AnnotatedCaptureTypeImpl(CaptureType type, AnnotatedWildcardType wildcard, AnnotatedTypeVariable variable, AnnotatedType[] lowerBounds, AnnotatedType[] upperBounds, Annotation[] annotations)
-
-
Method Details
-
init
Initialize this CaptureTypeImpl. This is needed for type variable bounds referring to each other: we need the capture of the argument. -
setAnnotations
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedType- Overrides:
getDeclaredAnnotationsin classAnnotatedTypeImpl
-
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:
getAnnotatedUpperBoundsin interfaceAnnotatedCaptureType
-
setAnnotatedUpperBounds
- Specified by:
setAnnotatedUpperBoundsin interfaceAnnotatedCaptureType
-
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 withWildcardType.getLowerBounds().- Specified by:
getAnnotatedLowerBoundsin interfaceAnnotatedCaptureType
-
getAnnotatedTypeVariable
- Specified by:
getAnnotatedTypeVariablein interfaceAnnotatedCaptureType
-
getAnnotatedWildcardType
- Specified by:
getAnnotatedWildcardTypein interfaceAnnotatedCaptureType
-