Package org.jboss.forge.roaster.model
Interface JavaAnnotation<O extends JavaAnnotation<O>>
- All Superinterfaces:
AnnotationTarget<O>,Internal,JavaDocCapable<O>,JavaType<O>,Named,Origin<O>,Packaged<O>,TypeHolder<O>,VisibilityScoped
- All Known Subinterfaces:
JavaAnnotationSource
Represents a Java
@interface annotation type. See Roaster for various options in generating
JavaAnnotation instances.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationElement(String name) Get theAnnotationElementwith the given name and return it, otherwise, return null.List<? extends AnnotationElement<O>>Get a list of allAnnotationElements declared by thisJavaAnnotation, or return an empty list if noAnnotationElements are declared.booleanhasAnnotationElement(String name) Return whether or not thisJavaAnnotationdeclares anAnnotationElementwith the given name.booleanhasAnnotationElement(AnnotationElement<?> annotationElement) Return whether or not thisJavaAnnotationdeclares the givenAnnotationElementinstance.Methods inherited from interface org.jboss.forge.roaster.model.AnnotationTarget
getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotationMethods inherited from interface org.jboss.forge.roaster.Internal
getInternalMethods inherited from interface org.jboss.forge.roaster.model.JavaDocCapable
getJavaDoc, hasJavaDocMethods inherited from interface org.jboss.forge.roaster.model.JavaType
getCanonicalName, getEnclosingType, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterface, isRecord, toUnformattedStringMethods inherited from interface org.jboss.forge.roaster.model.Packaged
getPackage, isDefaultPackageMethods inherited from interface org.jboss.forge.roaster.model.TypeHolder
getNestedType, getNestedTypes, hasNestedType, hasNestedType, hasNestedTypeMethods inherited from interface org.jboss.forge.roaster.model.VisibilityScoped
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublic
-
Method Details
-
hasAnnotationElement
Return whether or not thisJavaAnnotationdeclares anAnnotationElementwith the given name. -
hasAnnotationElement
Return whether or not thisJavaAnnotationdeclares the givenAnnotationElementinstance. -
getAnnotationElement
Get theAnnotationElementwith the given name and return it, otherwise, return null. -
getAnnotationElements
List<? extends AnnotationElement<O>> getAnnotationElements()Get a list of allAnnotationElements declared by thisJavaAnnotation, or return an empty list if noAnnotationElements are declared.
-