|
|||||||||
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.AnnotatedArrayType
public static class AnnotatedTypeMirror.AnnotatedArrayType extends AnnotatedTypeMirror implements AnnotatedTypeMirror.AnnotatedReferenceType
Represents Array types in java. A multidimensional array type is represented as an array type whose component type is also an array type.
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 |
Modifier and Type | Method and Description | |
---|---|---|
|
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type. |
|
AnnotatedTypeMirror |
getComponentType()
|
|
AnnotatedTypeMirror.AnnotatedArrayType |
getCopy(boolean annotation)
Returns a shallow copy of this type. |
|
AnnotatedTypeMirror.AnnotatedArrayType |
getErased()
Returns the erasure type of the this type, according to JLS specifications. |
|
ArrayType |
getUnderlyingType()
Returns the underlying unannotated Java type wrapped with this |
|
AnnotatedTypeMirror |
substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
Sub |
|
String |
toString()
|
|
String |
toStringAsCanonical()
|
Methods inherited from class checkers.types.AnnotatedTypeMirror |
---|
addAnnotation, addAnnotation, addAnnotations, clearAnnotations, copyFields, createType, createTypeOfObject, directSuperTypes, directSuperTypes, equals, formatAnnotationString, getAnnotation, getAnnotation, getAnnotation, getAnnotations, getElement, getEnclosingType, getKind, hasAnnotation, hasAnnotation, hashCode, isAnnotated, removeAnnotation, removeAnnotation, removeAnnotations |
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 ArrayType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public AnnotatedTypeMirror getComponentType()
public AnnotatedTypeMirror.AnnotatedArrayType getCopy(boolean annotation)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
annotation
- whether copy should have annotationspublic AnnotatedTypeMirror substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedArrayType getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
public String toStringAsCanonical()
public String toString()
toString
in class AnnotatedTypeMirror
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |