@Beta public interface MutableEnumerationTypeDeclaration extends MutableTypeDeclaration, EnumerationTypeDeclaration
| Modifier and Type | Method and Description |
|---|---|
MutableEnumerationValueDeclaration |
addValue(String name,
Procedures.Procedure1<MutableEnumerationValueDeclaration> initializer)
Adds a new value with the given name.
|
MutableEnumerationValueDeclaration |
findDeclaredValue(String name) |
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, getAnnotationsIterable<? extends MutableEnumerationValueDeclaration> getDeclaredValues()
getDeclaredValues in interface EnumerationTypeDeclarationMutableEnumerationValueDeclaration findDeclaredValue(String name)
findDeclaredValue in interface EnumerationTypeDeclarationname - of the featurenull of no such value exists.MutableEnumerationValueDeclaration addValue(String name, 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 nullIllegalArgumentException - if the name is not a valid java identifier or the initializer is nullCopyright © 2015. All Rights Reserved.