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 CaptureType
private AnnotatedType[]
private final AnnotatedTypeVariable
private final AnnotatedWildcardType
Fields inherited from class io.leangen.geantyref.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) void
Initialize this CaptureTypeImpl.void
setAnnotatedUpperBounds
(AnnotatedType[] upperBounds) (package private) AnnotatedCaptureTypeImpl
setAnnotations
(Annotation[] annotations) Methods inherited from class io.leangen.geantyref.AnnotatedTypeImpl
annotationsString, equals, getAnnotatedOwnerType, getAnnotation, getAnnotations, getType, hashCode, toMap, toString, typesString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent
Methods inherited from interface java.lang.reflect.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:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedType
- Overrides:
getDeclaredAnnotations
in 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:
getAnnotatedUpperBounds
in interfaceAnnotatedCaptureType
-
setAnnotatedUpperBounds
- Specified by:
setAnnotatedUpperBounds
in 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:
getAnnotatedLowerBounds
in interfaceAnnotatedCaptureType
-
getAnnotatedTypeVariable
- Specified by:
getAnnotatedTypeVariable
in interfaceAnnotatedCaptureType
-
getAnnotatedWildcardType
- Specified by:
getAnnotatedWildcardType
in interfaceAnnotatedCaptureType
-