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
public interface JavaAnnotation<O extends JavaAnnotation<O>> extends JavaType<O>, TypeHolder<O>
Represents a Java@interfaceannotation type. SeeRoasterfor various options in generatingJavaAnnotationinstances.- Author:
- Lincoln Baxter, III
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationElement<O>getAnnotationElement(java.lang.String name)Get theAnnotationElementwith the given name and return it, otherwise, return null.java.util.List<? extends AnnotationElement<O>>getAnnotationElements()Get a list of allAnnotationElements declared by thisJavaAnnotation, or return an empty list if noAnnotationElements are declared.booleanhasAnnotationElement(java.lang.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, hasAnnotation
-
Methods inherited from interface org.jboss.forge.roaster.Internal
getInternal
-
Methods inherited from interface org.jboss.forge.roaster.model.JavaDocCapable
getJavaDoc, hasJavaDoc
-
Methods inherited from interface org.jboss.forge.roaster.model.JavaType
getCanonicalName, getEnclosingType, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterface, toUnformattedString
-
Methods inherited from interface org.jboss.forge.roaster.model.Packaged
getPackage, isDefaultPackage
-
Methods inherited from interface org.jboss.forge.roaster.model.TypeHolder
getNestedType, getNestedTypes, hasNestedType, hasNestedType, hasNestedType
-
Methods inherited from interface org.jboss.forge.roaster.model.VisibilityScoped
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublic
-
-
-
-
Method Detail
-
hasAnnotationElement
boolean hasAnnotationElement(java.lang.String name)
Return whether or not thisJavaAnnotationdeclares anAnnotationElementwith the given name.
-
hasAnnotationElement
boolean hasAnnotationElement(AnnotationElement<?> annotationElement)
Return whether or not thisJavaAnnotationdeclares the givenAnnotationElementinstance.
-
getAnnotationElement
AnnotationElement<O> getAnnotationElement(java.lang.String name)
Get theAnnotationElementwith the given name and return it, otherwise, return null.
-
getAnnotationElements
java.util.List<? extends AnnotationElement<O>> getAnnotationElements()
Get a list of allAnnotationElements declared by thisJavaAnnotation, or return an empty list if noAnnotationElements are declared.
-
-