Package io.micronaut.sourcegen.model
Class EnumDef
java.lang.Object
io.micronaut.sourcegen.model.ObjectDef
io.micronaut.sourcegen.model.EnumDef
The enum definition.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The enum definition builder. -
Field Summary
Fields inherited from class io.micronaut.sourcegen.model.ObjectDef
className, innerTypes, methods, properties, superinterfaces
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumDef.EnumDefBuilder
@Nullable FieldDef
final List<AnnotationDef>
@NonNull FieldDef
final Modifier[]
final String
getName()
boolean
withClassName
(ClassTypeDef.ClassName className) Creates a copy of this definition with a new class name.Methods inherited from class io.micronaut.sourcegen.model.ObjectDef
asTypeDef, getContextualType, getContextualType, getInnerTypes, getMethods, getPackageName, getProperties, getSimpleName, getSuperinterfaces
-
Field Details
-
name
-
modifiers
-
annotations
-
javadoc
-
-
Method Details
-
withClassName
Description copied from class:ObjectDef
Creates a copy of this definition with a new class name.- Specified by:
withClassName
in classObjectDef
- Parameters:
className
- The class name- Returns:
- the copy of this object definition with a new class name
-
builder
-
getFields
-
getEnumConstants
-
findField
-
getField
-
hasField
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-