|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object checkers.types.AnnotatedTypeMirror checkers.types.AnnotatedTypeMirror.AnnotatedTypeVariable
public static class AnnotatedTypeMirror.AnnotatedTypeVariable extends AnnotatedTypeMirror implements AnnotatedTypeMirror.AnnotatedReferenceType
Represents a type variable. A type variable may be explicitly declared by a type parameter of a type, method, or constructor. A type variable may also be declared implicitly, as by the capture conversion of a wildcard type argument (see chapter 5 of The Java Language Specification, Third Edition).
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. |
|
void |
addAnnotation(AnnotationMirror anno)
Adds an annotation to this type. |
|
boolean |
equals(Object o)
|
|
Set<AnnotationMirror> |
getAnnotations()
Returns the annotations on this type. |
|
Set<AnnotationMirror> |
getAnnotationsOnTypeVar()
|
|
AnnotatedTypeMirror.AnnotatedTypeVariable |
getCopy(boolean copyAnnotations)
Returns a shallow copy of this type. |
|
AnnotatedTypeMirror |
getErased()
Returns the erasure type of the this type, according to JLS specifications. |
|
AnnotatedTypeMirror |
getLowerBound()
|
|
Set<AnnotationMirror> |
getLowerBoundAnnotations()
|
|
Element |
getTypeVariableElement()
|
|
TypeVariable |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps |
|
AnnotatedTypeMirror |
getUpperBound()
|
|
Set<AnnotationMirror> |
getUpperBoundAnnotations()
|
|
int |
hashCode()
|
|
boolean |
isAnnotated()
Returns true if an annotation targets this type location. |
|
AnnotatedTypeMirror |
substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
Return a copy of this, with the given substitutions performed. |
|
String |
toString()
|
Methods inherited from class checkers.types.AnnotatedTypeMirror |
---|
addAnnotation, addAnnotations, clearAnnotations, copyFields, createType, createTypeOfObject, directSuperTypes, directSuperTypes, formatAnnotationString, getAnnotation, getAnnotation, getAnnotation, getElement, getEnclosingType, getKind, hasAnnotation, hasAnnotation, removeAnnotation, removeAnnotation, removeAnnotations, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public <R,P> R accept(AnnotatedTypeVisitor<R,P> v, P p)
AnnotatedTypeMirror
accept
in class AnnotatedTypeMirror
R
- 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 TypeVariable getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public Element getTypeVariableElement()
public AnnotatedTypeMirror getLowerBound()
getLowerBoundAnnotations()
public Set<AnnotationMirror> getLowerBoundAnnotations()
public AnnotatedTypeMirror getUpperBound()
getUpperBoundAnnotations()
public Set<AnnotationMirror> getUpperBoundAnnotations()
public AnnotatedTypeMirror.AnnotatedTypeVariable getCopy(boolean copyAnnotations)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotationspublic AnnotatedTypeMirror getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
public AnnotatedTypeMirror substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
public boolean isAnnotated()
AnnotatedTypeMirror
isAnnotated
in class AnnotatedTypeMirror
public Set<AnnotationMirror> getAnnotationsOnTypeVar()
public Set<AnnotationMirror> getAnnotations()
AnnotatedTypeMirror
getAnnotations
in class AnnotatedTypeMirror
public void addAnnotation(AnnotationMirror anno)
AnnotatedTypeMirror
TypeQualifier
meta-annotation, this method has no effect.
addAnnotation
in class AnnotatedTypeMirror
anno
- the annotation to addpublic String toString()
toString
in class AnnotatedTypeMirror
public int hashCode()
hashCode
in class AnnotatedTypeMirror
public boolean equals(Object o)
equals
in class AnnotatedTypeMirror
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |