public class JavassistAnnotationDeclaration extends AbstractTypeDeclaration implements ResolvedAnnotationDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT| Constructor and Description |
|---|
JavassistAnnotationDeclaration(javassist.CtClass ctClass,
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() |
String |
toString() |
getAllMethods, isFunctionalInterfaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasAnnotation, isAnnotationasReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isReferenceTypeasClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameterasEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariabletoAst, toAstisGenericpublic JavassistAnnotationDeclaration(javassist.CtClass ctClass,
TypeSolver typeSolver)
public String getPackageName()
getPackageName in interface ResolvedTypeDeclarationpublic String getClassName()
getClassName in interface ResolvedTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface ResolvedTypeDeclarationpublic boolean isAssignableBy(ResolvedType type)
isAssignableBy in interface ResolvedReferenceTypeDeclarationpublic List<ResolvedFieldDeclaration> getAllFields()
getAllFields in interface ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface ResolvedReferenceTypeDeclarationpublic List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface ResolvedReferenceTypeDeclarationpublic Set<ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface ResolvedTypeDeclarationpublic Set<ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface ResolvedReferenceTypeDeclarationpublic boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface ResolvedReferenceTypeDeclarationpublic String getName()
getName in interface ResolvedDeclarationpublic List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface ResolvedTypeParametrizablepublic Optional<ResolvedReferenceTypeDeclaration> containerType()
containerType in interface ResolvedTypeDeclarationpublic List<ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface ResolvedReferenceTypeDeclarationpublic List<ResolvedAnnotationMemberDeclaration> getAnnotationMembers()
getAnnotationMembers in interface ResolvedAnnotationDeclarationpublic boolean isInheritable()
isInheritable in interface ResolvedAnnotationDeclarationCopyright © 2007–2024. All rights reserved.