@Beta public interface MutableEnumerationTypeDeclaration extends MutableTypeDeclaration, EnumerationTypeDeclaration
| Modifier and Type | Method and Description |
|---|---|
MutableEnumerationValueDeclaration |
addValue(java.lang.String name,
org.eclipse.xtext.xbase.lib.Procedures.Procedure1<MutableEnumerationValueDeclaration> initializer)
Adds a new value with the given name.
|
MutableEnumerationValueDeclaration |
findDeclaredValue(java.lang.String name) |
java.lang.Iterable<? extends MutableEnumerationValueDeclaration> |
getDeclaredValues() |
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, getAnnotationsjava.lang.Iterable<? extends MutableEnumerationValueDeclaration> getDeclaredValues()
getDeclaredValues in interface EnumerationTypeDeclarationMutableEnumerationValueDeclaration findDeclaredValue(java.lang.String name)
findDeclaredValue in interface EnumerationTypeDeclarationname - of the featurenull of no such value exists.MutableEnumerationValueDeclaration addValue(java.lang.String name, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<MutableEnumerationValueDeclaration> initializer)
name - the name of the field to be added, must be not nullinitializer - a callback for further initialization of the created value, must be not nulljava.lang.IllegalArgumentException - if the name is not a valid java identifier or the initializer is null