public class JavaParserAnnotationDeclaration extends AbstractTypeDeclaration implements ResolvedAnnotationDeclaration
JAVA_LANG_ENUM, JAVA_LANG_OBJECT| Constructor and Description |
|---|
JavaParserAnnotationDeclaration(AnnotationDeclaration wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ResolvedReferenceTypeDeclaration> |
containerType() |
List<ResolvedFieldDeclaration> |
getAllFields() |
List<ResolvedReferenceType> |
getAncestors(boolean acceptIncompleteList) |
List<ResolvedAnnotationMemberDeclaration> |
getAnnotationMembers() |
String |
getClassName() |
List<ResolvedConstructorDeclaration> |
getConstructors() |
Set<ResolvedMethodDeclaration> |
getDeclaredMethods() |
String |
getName() |
String |
getPackageName() |
String |
getQualifiedName() |
List<ResolvedTypeParameterDeclaration> |
getTypeParameters()
Annotation declarations cannot have type parameters and hence this method always returns an empty list.
|
boolean |
hasDirectlyAnnotation(String canonicalName) |
boolean |
isAssignableBy(ResolvedReferenceTypeDeclaration other) |
boolean |
isAssignableBy(ResolvedType type) |
Optional<AnnotationDeclaration> |
toAst() |
getAllMethods, isFunctionalInterfaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface, isJavaLangEnum, isJavaLangObjectasClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, internalTypes, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameterasEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariableisGenericpublic JavaParserAnnotationDeclaration(AnnotationDeclaration wrappedNode, TypeSolver typeSolver)
public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface ResolvedReferenceTypeDeclarationpublic List<ResolvedFieldDeclaration> getAllFields()
getAllFields in interface ResolvedReferenceTypeDeclarationpublic Set<ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(ResolvedType type)
isAssignableBy in interface ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface ResolvedReferenceTypeDeclarationpublic boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface ResolvedReferenceTypeDeclarationpublic String getPackageName()
getPackageName in interface ResolvedTypeDeclarationpublic String getClassName()
getClassName in interface ResolvedTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface ResolvedTypeDeclarationpublic String getName()
getName in interface ResolvedDeclarationpublic List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface ResolvedTypeParametrizablepublic Optional<ResolvedReferenceTypeDeclaration> containerType()
containerType in interface ResolvedTypeDeclarationpublic List<ResolvedAnnotationMemberDeclaration> getAnnotationMembers()
getAnnotationMembers in interface ResolvedAnnotationDeclarationpublic List<ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface ResolvedReferenceTypeDeclarationpublic Optional<AnnotationDeclaration> toAst()
toAst in interface AssociableToAST<AnnotationDeclaration>Copyright © 2007–2021. All rights reserved.