|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcheckers.types.AnnotatedTypeMirror
checkers.types.AnnotatedTypeMirror.AnnotatedExecutableType
public static class AnnotatedTypeMirror.AnnotatedExecutableType extends AnnotatedTypeMirror
Represents a type of an executable. An executable is a method, constructor, or initializer.
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. |
|
AnnotatedTypeMirror.AnnotatedExecutableType |
getCopy(boolean copyAnnotations)
Returns a shallow copy of this type. |
|
ExecutableElement |
getElement()
Returns the element associated with the value the type represent, if any. |
|
AnnotatedTypeMirror.AnnotatedExecutableType |
getErased()
Returns the erasure type of the this type, according to JLS specifications. |
|
List<AnnotatedTypeMirror> |
getParameterTypes()
|
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
getReceiverType()
|
|
AnnotatedTypeMirror |
getReturnType()
|
|
List<AnnotatedTypeMirror> |
getThrownTypes()
|
|
List<AnnotatedTypeMirror.AnnotatedTypeVariable> |
getTypeVariables()
|
|
ExecutableType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps |
|
boolean |
isVarArgs()
|
|
AnnotatedTypeMirror.AnnotatedExecutableType |
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, addAnnotation, addAnnotations, clearAnnotations, copyFields, createType, createTypeOfObject, directSuperTypes, directSuperTypes, equals, formatAnnotationString, getAnnotation, getAnnotation, getAnnotation, getAnnotations, getEnclosingType, getKind, hasAnnotation, hasAnnotation, hashCode, isAnnotated, removeAnnotation, removeAnnotation, removeAnnotations, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isVarArgs()
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 ExecutableType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public List<AnnotatedTypeMirror> getParameterTypes()
public AnnotatedTypeMirror getReturnType()
public AnnotatedTypeMirror.AnnotatedDeclaredType getReceiverType()
public List<AnnotatedTypeMirror> getThrownTypes()
public List<AnnotatedTypeMirror.AnnotatedTypeVariable> getTypeVariables()
public AnnotatedTypeMirror.AnnotatedExecutableType getCopy(boolean copyAnnotations)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotations@NonNull public ExecutableElement getElement()
AnnotatedTypeMirror
getElement
in class AnnotatedTypeMirror
Element
of the value of this type, if one existspublic AnnotatedTypeMirror.AnnotatedExecutableType getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedExecutableType substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
public String toString()
toString
in class AnnotatedTypeMirror
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |