Class EnumGenUtils
java.lang.Object
io.micronaut.sourcegen.bytecode.core.EnumGenUtils
Model-level enum member synthesis shared by bytecode backends.
- Since:
- 2.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines whether a class definition represents the lowered form of an enum.static booleanisEnumField(ObjectDef objectDef, FieldDef fieldDef) Determines whether a field is one of the synthesized enum constants.static ClassDeftoClassDef(EnumDef enumDef) Generates a class definition from an enum definition.
-
Method Details
-
toClassDef
-
isEnumField
-
isEnum
Determines whether a class definition represents the lowered form of an enum.- Parameters:
classDef- The class definition- Returns:
trueif the class is an enum
-