Package io.micronaut.sourcegen.bytecode
Class EnumGenUtils
java.lang.Object
io.micronaut.sourcegen.bytecode.EnumGenUtils
The enum generator utils.
- Since:
- 1.5
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Is enum class.static boolean
isEnumField
(ObjectDef objectDef, FieldDef fieldDef) Is enum field.static ClassDef
toClassDef
(EnumDef enumDef)
-
Constructor Details
-
EnumGenUtils
public EnumGenUtils()
-
-
Method Details
-
toClassDef
- Parameters:
enumDef
- The enum def- Returns:
- The class definition
-
isEnumField
Is enum field.- Parameters:
objectDef
- The object deffieldDef
- The field- Returns:
- true if is an enum field
-
isEnum
Is enum class.- Parameters:
classDef
- The class def- Returns:
- true if the enum class
-