public class ReflectionAnnotationDeclaration extends AbstractTypeDeclaration implements ResolvedAnnotationDeclaration, MethodUsageResolutionCapability, MethodResolutionCapability
Constructor and Description |
---|
ReflectionAnnotationDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface, isJavaLangEnum, isJavaLangObject
asClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameter
asEnumConstant, asField, asMethod, asParameter, hasName, isEnumConstant, isField, isMethod, isParameter, isVariable
isGeneric
public ReflectionAnnotationDeclaration(Class<?> clazz, TypeSolver typeSolver)
public String getPackageName()
getPackageName
in interface ResolvedTypeDeclaration
public String getClassName()
getClassName
in interface ResolvedTypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface ResolvedTypeDeclaration
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 List<ResolvedFieldDeclaration> getAllFields()
getAllFields
in interface ResolvedReferenceTypeDeclaration
public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface ResolvedReferenceTypeDeclaration
public Set<ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface ResolvedReferenceTypeDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public Optional<ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface ResolvedTypeDeclaration
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface ResolvedTypeParametrizable
public Set<ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface ResolvedTypeDeclaration
public List<ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface ResolvedReferenceTypeDeclaration
public List<ResolvedAnnotationMemberDeclaration> getAnnotationMembers()
getAnnotationMembers
in interface ResolvedAnnotationDeclaration
public Optional<AnnotationDeclaration> toAst()
toAst
in interface AssociableToAST<AnnotationDeclaration>
public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Context invokationContext, List<ResolvedType> typeParameterValues)
solveMethodAsUsage
in interface MethodUsageResolutionCapability
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod
in interface MethodResolutionCapability
Copyright © 2007–2020. All rights reserved.