Interface MutableAnnotationTypeDeclaration
-
- All Superinterfaces:
AnnotationTarget,AnnotationTypeDeclaration,Declaration,Element,MemberDeclaration,MutableAnnotationTarget,MutableDeclaration,MutableElement,MutableMemberDeclaration,MutableNamedElement,MutableTypeDeclaration,NamedElement,Type,TypeDeclaration
@Beta public interface MutableAnnotationTypeDeclaration extends MutableTypeDeclaration, AnnotationTypeDeclaration
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableAnnotationTypeElementDeclarationaddAnnotationTypeElement(java.lang.String name, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<MutableAnnotationTypeElementDeclaration> initializer)Adds a new annotation type element with the given name.MutableAnnotationTypeElementDeclarationfindDeclaredAnnotationTypeElement(java.lang.String name)java.lang.Iterable<? extends MutableAnnotationTypeElementDeclaration>getDeclaredAnnotationTypeElements()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecated
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotation
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsRead
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibility
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableTypeDeclaration
addConstructor, addField, addMethod, findDeclaredConstructor, findDeclaredField, findDeclaredMethod, findDeclaredType, getDeclaredAnnotationTypes, getDeclaredClasses, getDeclaredConstructors, getDeclaredEnumerationTypes, getDeclaredFields, getDeclaredInterfaces, getDeclaredMembers, getDeclaredMethods, getDeclaredTypes, remove, setSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.Type
getQualifiedName, isAssignableFrom
-
-
-
-
Method Detail
-
findDeclaredAnnotationTypeElement
MutableAnnotationTypeElementDeclaration findDeclaredAnnotationTypeElement(java.lang.String name)
- Specified by:
findDeclaredAnnotationTypeElementin interfaceAnnotationTypeDeclaration- Parameters:
name- the name of the annotation element- Returns:
- the annotation type element with the given name, declared by this annotation type declaration or
nullif no such annotation type element exists
-
getDeclaredAnnotationTypeElements
java.lang.Iterable<? extends MutableAnnotationTypeElementDeclaration> getDeclaredAnnotationTypeElements()
- Specified by:
getDeclaredAnnotationTypeElementsin interfaceAnnotationTypeDeclaration- Returns:
- the annotation type elements declared by this annotation type declaration
-
addAnnotationTypeElement
MutableAnnotationTypeElementDeclaration addAnnotationTypeElement(java.lang.String name, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<MutableAnnotationTypeElementDeclaration> initializer)
Adds a new annotation type element with the given name.- Parameters:
name- the name of the annotation type element to be added, must not benullinitializer- a callback for further initialization of the created annotation type element, must not benull- Returns:
- the created annotation type element declaration
- Throws:
java.lang.UnsupportedOperationException- if the underlying type declaration is not capable of containing an annotation type element.java.lang.IllegalArgumentException- if thenameis not a valid java identifier or theinitializerisnull
-
-