Class EnumGenUtils
java.lang.Object
io.micronaut.sourcegen.bytecode.EnumGenUtils
Compatibility facade for enum model synthesis.
- Since:
- 1.5
- Author:
- Denis Stepanov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines whether a class is the lowered form of an enum.static booleanisEnumField(ObjectDef objectDef, FieldDef fieldDef) Determines whether a field is a synthesized enum constant.static ClassDeftoClassDef(EnumDef enumDef) Creates the lowered class form of an enum definition.
-
Constructor Details
-
EnumGenUtils
public EnumGenUtils()
-
-
Method Details
-
toClassDef
-
isEnumField
-
isEnum
Determines whether a class is the lowered form of an enum.- Parameters:
classDef- The class definition- Returns:
trueif the class is an enum
-