public class JavaParserAnnotationDeclaration extends AbstractTypeDeclaration implements ResolvedAnnotationDeclaration
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, isFunctionalInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
asClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, internalTypes, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameter
asEnumConstant, asField, asMethod, asParameter, hasName, isEnumConstant, isField, isMethod, isParameter, isVariable
isGeneric
public JavaParserAnnotationDeclaration(AnnotationDeclaration wrappedNode, TypeSolver typeSolver)
public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface ResolvedReferenceTypeDeclaration
public List<ResolvedFieldDeclaration> getAllFields()
getAllFields
in interface ResolvedReferenceTypeDeclaration
public Set<ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface ResolvedReferenceTypeDeclaration
public boolean isAssignableBy(ResolvedType type)
isAssignableBy
in interface ResolvedReferenceTypeDeclaration
public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other)
isAssignableBy
in interface ResolvedReferenceTypeDeclaration
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation
in interface ResolvedReferenceTypeDeclaration
public String getPackageName()
getPackageName
in interface ResolvedTypeDeclaration
public String getClassName()
getClassName
in interface ResolvedTypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface ResolvedTypeDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface ResolvedTypeParametrizable
public Optional<ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface ResolvedTypeDeclaration
public List<ResolvedAnnotationMemberDeclaration> getAnnotationMembers()
getAnnotationMembers
in interface ResolvedAnnotationDeclaration
public List<ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface ResolvedReferenceTypeDeclaration
public Optional<AnnotationDeclaration> toAst()
toAst
in interface AssociableToAST<AnnotationDeclaration>
Copyright © 2007–2020. All rights reserved.