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

public Interface MutableEnumerationTypeDeclaration

extends MutableTypeDeclaration, EnumerationTypeDeclaration
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 MutableEnumerationValueDeclaration

Returns:

the created value declaration
addValue
(String
the name of the field to be added, must be not null
name
,
Procedures.Procedure1<MutableEnumerationValueDeclaration>
a callback for further initialization of the created value, must be not null
initializer
)

Adds a new value with the given name.

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

Method Detail

addValueback to summary
public MutableEnumerationValueDeclaration addValue(String name, Procedures.Procedure1<MutableEnumerationValueDeclaration> initializer)

Adds a new value with the given name.

Parameters
name:String

the name of the field to be added, must be not null

initializer:Procedures.Procedure1<MutableEnumerationValueDeclaration>

a callback for further initialization of the created value, must be not null

Returns:MutableEnumerationValueDeclaration

the created value declaration

Exceptions
IllegalArgumentException:
if the name is not a valid java identifier or the initializer is null
findDeclaredValueback to summary
public MutableEnumerationValueDeclaration findDeclaredValue(String name)

Redeclares org.eclipse.xtend.lib.macro.declaration.EnumerationTypeDeclaration.findDeclaredValue.

getDeclaredValuesback to summary
public Iterable<? extends MutableEnumerationValueDeclaration> getDeclaredValues()

Redeclares org.eclipse.xtend.lib.macro.declaration.EnumerationTypeDeclaration.getDeclaredValues.