Class JavaParserAnnotationDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserAnnotationDeclaration
- All Implemented Interfaces:
AssociableToAST<AnnotationDeclaration>
,ResolvedAnnotationDeclaration
,ResolvedDeclaration
,ResolvedReferenceTypeDeclaration
,ResolvedTypeDeclaration
,ResolvedTypeParametrizable
public class JavaParserAnnotationDeclaration
extends AbstractTypeDeclaration
implements ResolvedAnnotationDeclaration
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_LANG_ENUM, JAVA_LANG_OBJECT
-
Constructor Summary
ConstructorsConstructorDescriptionJavaParserAnnotationDeclaration(AnnotationDeclaration wrappedNode, TypeSolver typeSolver)
-
Method Summary
Modifier and TypeMethodDescriptiongetAncestors(boolean acceptIncompleteList)
getName()
Annotation declarations cannot have type parameters and hence this method always returns an empty list.boolean
hasDirectlyAnnotation(String canonicalName)
boolean
boolean
isAssignableBy(ResolvedType type)
toAst()
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterface
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedAnnotationDeclaration
asAnnotation, isAnnotation
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface, isJavaLangEnum, isJavaLangObject
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameter
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
JavaParserAnnotationDeclaration
-
-
Method Details
-
getAncestors
- Specified by:
getAncestors
in interfaceResolvedReferenceTypeDeclaration
-
internalTypes
- Specified by:
internalTypes
in interfaceResolvedTypeDeclaration
-
getAllFields
- Specified by:
getAllFields
in interfaceResolvedReferenceTypeDeclaration
-
getDeclaredMethods
- Specified by:
getDeclaredMethods
in interfaceResolvedReferenceTypeDeclaration
-
isAssignableBy
- Specified by:
isAssignableBy
in interfaceResolvedReferenceTypeDeclaration
-
isAssignableBy
- Specified by:
isAssignableBy
in interfaceResolvedReferenceTypeDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotation
in interfaceResolvedReferenceTypeDeclaration
-
getPackageName
- Specified by:
getPackageName
in interfaceResolvedTypeDeclaration
-
getClassName
- Specified by:
getClassName
in interfaceResolvedTypeDeclaration
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceResolvedTypeDeclaration
-
getName
- Specified by:
getName
in interfaceResolvedDeclaration
-
getTypeParameters
Annotation declarations cannot have type parameters and hence this method always returns an empty list.- Specified by:
getTypeParameters
in interfaceResolvedTypeParametrizable
- Returns:
- An empty list.
-
containerType
- Specified by:
containerType
in interfaceResolvedTypeDeclaration
-
getAnnotationMembers
- Specified by:
getAnnotationMembers
in interfaceResolvedAnnotationDeclaration
-
getConstructors
- Specified by:
getConstructors
in interfaceResolvedReferenceTypeDeclaration
-
toAst
- Specified by:
toAst
in interfaceAssociableToAST<AnnotationDeclaration>
-