Top Methods
org.eclipse.xtend.lib.macro.declaration

public Interface MutableAnnotationTypeDeclaration

extends MutableTypeDeclaration, AnnotationTypeDeclaration
Annotations
@Beta
Imports
org.eclipse.xtext.xbase.lib.Procedures, com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public MutableAnnotationTypeElementDeclaration

Returns:

the created annotation type element declaration
addAnnotationTypeElement
(String
the name of the annotation type element to be added, must not be null
name
,
Procedures.Procedure1<MutableAnnotationTypeElementDeclaration>
a callback for further initialization of the created annotation type element, must not be null
initializer
)

Adds a new annotation type element with the given name.

public MutableAnnotationTypeElementDeclaration
public Iterable<? extends MutableAnnotationTypeElementDeclaration>
Inherited from org.eclipse.xtend.lib.macro.declaration.MutableTypeDeclaration:
addConstructoraddFieldaddMethodfindDeclaredConstructorfindDeclaredFieldfindDeclaredMethodfindDeclaredTypegetDeclaredAnnotationTypesgetDeclaredClassesgetDeclaredConstructorsgetDeclaredEnumerationTypesgetDeclaredFieldsgetDeclaredInterfacesgetDeclaredMembersgetDeclaredMethodsgetDeclaredTypesremovesetSimpleName

Method Detail

addAnnotationTypeElementback to summary
public MutableAnnotationTypeElementDeclaration addAnnotationTypeElement(String name, Procedures.Procedure1<MutableAnnotationTypeElementDeclaration> initializer)

Adds a new annotation type element with the given name.

Parameters
name:String

the name of the annotation type element to be added, must not be null

initializer:Procedures.Procedure1<MutableAnnotationTypeElementDeclaration>

a callback for further initialization of the created annotation type element, must not be null

Returns:MutableAnnotationTypeElementDeclaration

the created annotation type element declaration

Exceptions
UnsupportedOperationException:
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 null
findDeclaredAnnotationTypeElementback to summary
public MutableAnnotationTypeElementDeclaration findDeclaredAnnotationTypeElement(String name)

Redeclares org.eclipse.xtend.lib.macro.declaration.AnnotationTypeDeclaration.findDeclaredAnnotationTypeElement.

getDeclaredAnnotationTypeElementsback to summary
public Iterable<? extends MutableAnnotationTypeElementDeclaration> getDeclaredAnnotationTypeElements()

Redeclares org.eclipse.xtend.lib.macro.declaration.AnnotationTypeDeclaration.getDeclaredAnnotationTypeElements.