@Beta public interface MutableAnnotationTypeDeclaration extends MutableTypeDeclaration, AnnotationTypeDeclaration
| Modifier and Type | Method and Description |
|---|---|
MutableAnnotationTypeElementDeclaration |
addAnnotationTypeElement(String name,
Procedures.Procedure1<MutableAnnotationTypeElementDeclaration> initializer)
Adds a new annotation type element with the given name.
|
MutableAnnotationTypeElementDeclaration |
findDeclaredAnnotationTypeElement(String name) |
Iterable<? extends MutableAnnotationTypeElementDeclaration> |
getDeclaredAnnotationTypeElements() |
addConstructor, addField, addMethod, findDeclaredConstructor, findDeclaredField, findDeclaredMethod, findDeclaredType, getDeclaredAnnotationTypes, getDeclaredClasses, getDeclaredConstructors, getDeclaredEnumerationTypes, getDeclaredFields, getDeclaredInterfaces, getDeclaredMembers, getDeclaredMethods, getDeclaredTypes, remove, setSimpleNamegetDeclaringType, setDeprecated, setDocComment, setVisibilitymarkAsReadaddAnnotation, removeAnnotationgetQualifiedName, isAssignableFromgetDocComment, getModifiers, getVisibility, isDeprecatedfindAnnotation, getAnnotationsMutableAnnotationTypeElementDeclaration findDeclaredAnnotationTypeElement(String name)
findDeclaredAnnotationTypeElement in interface AnnotationTypeDeclarationname - the name of the annotation elementnull if no such annotation type element existsIterable<? extends MutableAnnotationTypeElementDeclaration> getDeclaredAnnotationTypeElements()
getDeclaredAnnotationTypeElements in interface AnnotationTypeDeclarationMutableAnnotationTypeElementDeclaration addAnnotationTypeElement(String name, Procedures.Procedure1<MutableAnnotationTypeElementDeclaration> initializer)
name - the name of the annotation type element to be added, must not be nullinitializer - a callback for further initialization of the created annotation type element, must not be nullUnsupportedOperationException - if the underlying type declaration is not capable of containing an annotation type element.IllegalArgumentException - if the name is not a valid java identifier or the initializer is nullCopyright © 2015. All Rights Reserved.