public interface JavaAnnotation<O extends JavaAnnotation<O>> extends JavaType<O>, TypeHolder<O>
@interface annotation type. See Roaster for various options in generating
JavaAnnotation instances.| Modifier and Type | Method and Description |
|---|---|
AnnotationElement<O> |
getAnnotationElement(String name)
Get the
AnnotationElement with the given name and return it, otherwise, return null. |
List<? extends AnnotationElement<O>> |
getAnnotationElements()
Get a list of all
AnnotationElements declared by this JavaAnnotation, or return an empty list if
no AnnotationElements are declared. |
boolean |
hasAnnotationElement(AnnotationElement<?> annotationElement)
Return whether or not this
JavaAnnotation declares the given AnnotationElement instance. |
boolean |
hasAnnotationElement(String name)
Return whether or not this
JavaAnnotation declares an AnnotationElement with the given name. |
getCanonicalName, getEnclosingType, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterface, toUnformattedStringgetPackage, isDefaultPackagegetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicgetAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotationgetInternalgetJavaDoc, hasJavaDocgetNestedType, getNestedTypes, hasNestedType, hasNestedType, hasNestedTypeboolean hasAnnotationElement(String name)
JavaAnnotation declares an AnnotationElement with the given name.boolean hasAnnotationElement(AnnotationElement<?> annotationElement)
JavaAnnotation declares the given AnnotationElement instance.AnnotationElement<O> getAnnotationElement(String name)
AnnotationElement with the given name and return it, otherwise, return null.List<? extends AnnotationElement<O>> getAnnotationElements()
AnnotationElements declared by this JavaAnnotation, or return an empty list if
no AnnotationElements are declared.Copyright © 2017 JBoss by Red Hat. All rights reserved.