public class JavaParserAnnotationDeclaration extends AbstractTypeDeclaration implements AnnotationDeclaration
Constructor and Description |
---|
JavaParserAnnotationDeclaration(com.github.javaparser.ast.body.AnnotationDeclaration wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
List<FieldDeclaration> |
getAllFields() |
List<ReferenceType> |
getAncestors() |
Set<MethodDeclaration> |
getDeclaredMethods() |
String |
getName() |
String |
getQualifiedName() |
List<TypeParameterDeclaration> |
getTypeParameters() |
boolean |
hasDirectlyAnnotation(String qualifiedName) |
boolean |
isAssignableBy(ReferenceTypeDeclaration other) |
boolean |
isAssignableBy(Type type) |
getAllMethods, isFunctionalInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
asClass, asEnum, asInterface, asType, asTypeParameter, containerType, getId, internalTypes, isClass, isEnum, isInterface, isType, isTypeParameter
asField, asMethod, asParameter, hasName, isField, isMethod, isParameter
public JavaParserAnnotationDeclaration(com.github.javaparser.ast.body.AnnotationDeclaration wrappedNode, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
getAncestors
in interface ReferenceTypeDeclaration
public List<FieldDeclaration> getAllFields()
getAllFields
in interface ReferenceTypeDeclaration
public Set<MethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface ReferenceTypeDeclaration
public boolean isAssignableBy(Type type)
isAssignableBy
in interface ReferenceTypeDeclaration
public boolean isAssignableBy(ReferenceTypeDeclaration other)
isAssignableBy
in interface ReferenceTypeDeclaration
public boolean hasDirectlyAnnotation(String qualifiedName)
hasDirectlyAnnotation
in interface ReferenceTypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface TypeDeclaration
public String getName()
getName
in interface Declaration
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
Copyright © 2016. All rights reserved.