public class ReflectionAnnotationDeclaration extends AbstractTypeDeclaration implements com.github.javaparser.resolution.declarations.ResolvedAnnotationDeclaration, MethodUsageResolutionCapability, MethodResolutionCapability
| Constructor and Description | 
|---|
| ReflectionAnnotationDeclaration(Class<?> clazz,
                               TypeSolver typeSolver) | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> | containerType() | 
| boolean | equals(Object o) | 
| List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> | getAllFields() | 
| List<com.github.javaparser.resolution.types.ResolvedReferenceType> | getAncestors(boolean acceptIncompleteList) | 
| List<com.github.javaparser.resolution.declarations.ResolvedAnnotationMemberDeclaration> | getAnnotationMembers() | 
| String | getClassName() | 
| List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> | getConstructors() | 
| Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> | getDeclaredMethods() | 
| String | getName() | 
| String | getPackageName() | 
| String | getQualifiedName() | 
| List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> | getTypeParameters()Annotation declarations cannot have type parameters and hence this method always returns an empty list. | 
| boolean | hasDirectlyAnnotation(String canonicalName) | 
| int | hashCode() | 
| Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> | internalTypes() | 
| boolean | isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) | 
| boolean | isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) | 
| SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> | solveMethod(String name,
           List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
           boolean staticOnly) | 
| Optional<com.github.javaparser.resolution.MethodUsage> | solveMethodAsUsage(String name,
                  List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes,
                  Context invokationContext,
                  List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues) | 
| Optional<com.github.javaparser.ast.body.AnnotationDeclaration> | toAst() | 
| String | toString() | 
getAllMethods, isFunctionalInterfaceclone, finalize, getClass, notify, notifyAll, wait, wait, waitasReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterfaceasClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameterpublic ReflectionAnnotationDeclaration(Class<?> clazz, TypeSolver typeSolver)
public String getPackageName()
getPackageName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getClassName()
getClassName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic String getName()
getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablepublic Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedAnnotationMemberDeclaration> getAnnotationMembers()
getAnnotationMembers in interface com.github.javaparser.resolution.declarations.ResolvedAnnotationDeclarationpublic Optional<com.github.javaparser.ast.body.AnnotationDeclaration> toAst()
toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.AnnotationDeclaration>public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, Context invokationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues)
solveMethodAsUsage in interface MethodUsageResolutionCapabilitypublic SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod in interface MethodResolutionCapabilityCopyright © 2007–2019. All rights reserved.