Class EnumGenUtils

java.lang.Object
io.micronaut.sourcegen.bytecode.EnumGenUtils

@Internal public class EnumGenUtils extends Object
The enum generator utils.
Since:
1.5
Author:
Denis Stepanov
  • Constructor Details

    • EnumGenUtils

      public EnumGenUtils()
  • Method Details

    • toClassDef

      public static ClassDef toClassDef(EnumDef enumDef)
      Generate the ClassDef from EnumDef.
      Parameters:
      enumDef - The enum def
      Returns:
      The class definition
    • isEnumField

      public static boolean isEnumField(ObjectDef objectDef, FieldDef fieldDef)
      Is enum field.
      Parameters:
      objectDef - The object def
      fieldDef - The field
      Returns:
      true if is an enum field
    • isEnum

      public static boolean isEnum(ClassDef classDef)
      Is enum class.
      Parameters:
      classDef - The class def
      Returns:
      true if the enum class