Class ReflectionAnnotationDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionAnnotationDeclaration
-
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.AnnotationDeclaration>
,com.github.javaparser.resolution.declarations.ResolvedAnnotationDeclaration
,com.github.javaparser.resolution.declarations.ResolvedDeclaration
,com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
,com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
,com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public class ReflectionAnnotationDeclaration extends com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration implements com.github.javaparser.resolution.declarations.ResolvedAnnotationDeclaration
- Author:
- Malte Skoruppa
-
-
Constructor Summary
Constructors Constructor Description ReflectionAnnotationDeclaration(Class<?> clazz, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
boolean
hasDirectlyAnnotation(String canonicalName)
int
hashCode()
boolean
isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
boolean
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
Optional<com.github.javaparser.ast.body.AnnotationDeclaration>
toAst()
String
toString()
-
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterface
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, hasName, isEnumConstant, isField, isMethod, isParameter, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
-
-
-
-
Constructor Detail
-
ReflectionAnnotationDeclaration
public ReflectionAnnotationDeclaration(Class<?> clazz, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
-
Method Detail
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getClassName
public String getClassName()
- Specified by:
getClassName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
hasDirectlyAnnotation
public boolean hasDirectlyAnnotation(String canonicalName)
- Specified by:
hasDirectlyAnnotation
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAllFields
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
- Specified by:
getAllFields
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAncestors
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
- Specified by:
getAncestors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getDeclaredMethods
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
- Specified by:
getDeclaredMethods
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
containerType
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
- Specified by:
containerType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getTypeParameters
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParameters
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
-
getConstructors
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
- Specified by:
getConstructors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAnnotationMembers
public List<com.github.javaparser.resolution.declarations.ResolvedAnnotationMemberDeclaration> getAnnotationMembers()
- Specified by:
getAnnotationMembers
in interfacecom.github.javaparser.resolution.declarations.ResolvedAnnotationDeclaration
-
toAst
public Optional<com.github.javaparser.ast.body.AnnotationDeclaration> toAst()
- Specified by:
toAst
in interfacecom.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.AnnotationDeclaration>
-
-