|
|||||||||
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.AnnotatedDeclaredType
public static class AnnotatedTypeMirror.AnnotatedDeclaredType
Represents a declared type (whether class or interface).
Nested Class Summary |
---|
Field Summary | |
---|---|
protected DeclaredType |
actualType
|
protected List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
interfaces
Deprecated. |
protected AnnotatedTypeMirror.AnnotatedDeclaredType |
superclass
Deprecated. |
protected List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
supertypes
|
protected List<AnnotatedTypeMirror> |
typeArgs
Parametrized Type Arguments |
Fields inherited from class checkers.types.AnnotatedTypeMirror |
---|
annotationFactory, annotations, element, enclosingType, env, typeFactory |
Method Summary | ||
---|---|---|
|
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type. |
|
List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
directSuperTypes()
|
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
getCopy(boolean annotation)
Returns a shallow copy of this type. |
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
getErased()
Returns the erasure type of the this type, according to JLS specifications. |
|
List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
getInterfaces()
Deprecated. |
|
AnnotatedTypeMirror |
getSuperclass()
Deprecated. |
|
List<AnnotatedTypeMirror> |
getTypeArguments()
|
|
DeclaredType |
getUnderlyingType()
Returns the underlying unannotated Java type wrapped with this |
|
boolean |
isGeneric()
Returns true if the type is generic, even if the type is erased or used as a RAW type. |
|
boolean |
isParameterized()
Returns true if the type is a generic type and the type declaration is parameterized. |
|
AnnotatedTypeMirror |
substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mapping)
Sub |
|
String |
toString()
|
Methods inherited from class checkers.types.AnnotatedTypeMirror |
---|
addAnnotation, addAnnotations, clearAnnotations, copyFields, createType, createTypeOfObject, directSuperTypes, equals, formatAnnotationString, getAnnotation, getAnnotation, getAnnotations, getElement, getEnclosingType, getKind, hasAnnotation, hashCode, removeAnnotation, removeAnnotations |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List<AnnotatedTypeMirror> typeArgs
@Deprecated protected AnnotatedTypeMirror.AnnotatedDeclaredType superclass
@Deprecated protected List<AnnotatedTypeMirror.AnnotatedDeclaredType> interfaces
protected final DeclaredType actualType
protected List<AnnotatedTypeMirror.AnnotatedDeclaredType> supertypes
Method Detail |
---|
public String toString()
toString
in class AnnotatedTypeMirror
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 visitor
public List<AnnotatedTypeMirror> getTypeArguments()
@Deprecated public AnnotatedTypeMirror getSuperclass()
public boolean isGeneric()
public boolean isParameterized()
@Deprecated public List<AnnotatedTypeMirror.AnnotatedDeclaredType> getInterfaces()
public DeclaredType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public List<AnnotatedTypeMirror.AnnotatedDeclaredType> directSuperTypes()
directSuperTypes
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedDeclaredType getCopy(boolean annotation)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
annotation
- whether copy should have annotationspublic AnnotatedTypeMirror substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mapping)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedDeclaredType getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |