public class BoundsInitializer extends Object
Constructor and Description |
---|
BoundsInitializer() |
Modifier and Type | Method and Description |
---|---|
static void |
abortIfParentNotKind(TypeKind typeKind,
AnnotatedTypeMirror.AnnotatedTypeVariable type,
AnnotatedTypeMirror parent) |
static void |
initializeBounds(AnnotatedTypeMirror.AnnotatedTypeVariable typeVar)
Create the entire lower bound and upper bound, with no missing information, for typeVar.
|
static void |
initializeExtendsBound(AnnotatedTypeMirror.AnnotatedWildcardType wildcard)
Create the entire extends bound, with no missing information, for wildcard.
|
static void |
initializeSuperBound(AnnotatedTypeMirror.AnnotatedWildcardType wildcard)
Create the entire super bound, with no missing information, for wildcard.
|
static void |
initializeTypeArgs(AnnotatedTypeMirror.AnnotatedDeclaredType declaredType)
Initializes the type arguments of
declaredType . |
public static void initializeTypeArgs(AnnotatedTypeMirror.AnnotatedDeclaredType declaredType)
declaredType
. The upper bound of unbound wildcards
is set to the upper bound of the type parameter for which it is an argument. If declaredType
is raw, then the type arguments are uninferred wildcards.declaredType
- type whose arguments are initialized.public static void initializeBounds(AnnotatedTypeMirror.AnnotatedTypeVariable typeVar)
typeVar
- the type variable whose lower bound is being initializedpublic static void initializeSuperBound(AnnotatedTypeMirror.AnnotatedWildcardType wildcard)
wildcard
- the wildcard whose lower bound is being initializedpublic static void initializeExtendsBound(AnnotatedTypeMirror.AnnotatedWildcardType wildcard)
wildcard
- the wildcard whose extends bound is being initializedpublic static void abortIfParentNotKind(TypeKind typeKind, AnnotatedTypeMirror.AnnotatedTypeVariable type, AnnotatedTypeMirror parent)