|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcheckers.types.AnnotatedTypeMirror
checkers.types.AnnotatedTypeMirror.AnnotatedWildcardType
public static class AnnotatedTypeMirror.AnnotatedWildcardType extends AnnotatedTypeMirror
Represents a wildcard type argument. Examples include: ? ? extends Number ? super T A wildcard may have its upper bound explicitly set by an extends clause, its lower bound explicitly set by a super clause, or neither (but not both).
| Modifier and Type | Class and Description |
|---|
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class checkers.types.AnnotatedTypeMirror |
|---|
annotationFactory, annotations, element, enclosingType, env, typeFactory, uid |
| Modifier and Type | Method and Description | |
|---|---|---|
|
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type. |
|
Set<AnnotationMirror> |
getAnnotations()
Returns the annotations on this type. |
|
AnnotatedTypeMirror.AnnotatedWildcardType |
getCopy(boolean annotation)
Returns a shallow copy of this type. |
|
AnnotatedTypeMirror |
getErased()
Returns the erasure type of the this type, according to JLS specifications. |
|
AnnotatedTypeMirror |
getExtendsBound()
|
|
AnnotatedTypeMirror |
getSuperBound()
|
|
WildcardType |
getUnderlyingType()
Returns the underlying unannotated Java type wrapped with this |
|
boolean |
isAnnotated()
Returns true if an annotation targets this type location. |
|
AnnotatedTypeMirror |
substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
Sub |
|
String |
toString()
|
| Methods inherited from class checkers.types.AnnotatedTypeMirror |
|---|
addAnnotation, addAnnotation, addAnnotations, clearAnnotations, copyFields, createType, createTypeOfObject, directSuperTypes, directSuperTypes, equals, formatAnnotationString, getAnnotation, getAnnotation, getAnnotation, getElement, getEnclosingType, getKind, hasAnnotation, hasAnnotation, hashCode, removeAnnotation, removeAnnotation, removeAnnotations, toStringDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public AnnotatedTypeMirror getSuperBound()
null is returned.public AnnotatedTypeMirror getExtendsBound()
null is returned.
public <R,P> R accept(AnnotatedTypeVisitor<R,P> v,
P p)
AnnotatedTypeMirror
accept in class AnnotatedTypeMirrorR - the return type of the visitor's methodsP - the type of the additional parameter to the visitor's methodsv - the visitor operating on this typep - additional parameter to the visitorpublic WildcardType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType in class AnnotatedTypeMirrorpublic AnnotatedTypeMirror.AnnotatedWildcardType getCopy(boolean annotation)
AnnotatedTypeMirror
getCopy in class AnnotatedTypeMirrorannotation - whether copy should have annotationspublic AnnotatedTypeMirror substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute in class AnnotatedTypeMirrorpublic AnnotatedTypeMirror getErased()
AnnotatedTypeMirror
getErased in class AnnotatedTypeMirrorpublic String toString()
toString in class AnnotatedTypeMirrorpublic boolean isAnnotated()
AnnotatedTypeMirror
isAnnotated in class AnnotatedTypeMirrorpublic Set<AnnotationMirror> getAnnotations()
AnnotatedTypeMirror
getAnnotations in class AnnotatedTypeMirror
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||