public class JavaParserAnnotationDeclaration extends AbstractTypeDeclaration implements ResolvedAnnotationDeclaration
breadthFirstFunc, depthFirstFunc, 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) |
Set<ResolvedReferenceTypeDeclaration> |
internalTypes() |
boolean |
isAssignableBy(ResolvedReferenceTypeDeclaration other) |
boolean |
isAssignableBy(ResolvedType type) |
boolean |
isInheritable() |
Optional<Node> |
toAst() |
getAllMethods, isFunctionalInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asAnnotation, isAnnotation
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface, isJavaLangEnum, isJavaLangObject, isReferenceType
asClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameter
asEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariable
toAst
isGeneric
public JavaParserAnnotationDeclaration(AnnotationDeclaration wrappedNode, TypeSolver typeSolver)
public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface ResolvedReferenceTypeDeclaration
public Set<ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface ResolvedTypeDeclaration
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 boolean isInheritable()
isInheritable
in interface ResolvedAnnotationDeclaration
public Optional<Node> toAst()
toAst
in interface AssociableToAST
Copyright © 2007–2022. All rights reserved.