Class ModelUtils

java.lang.Object
io.micronaut.sourcegen.generator.visitors.ModelUtils

@Internal public class ModelUtils extends Object
A utility class for working with complex types, like enums and POJOs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isModel(io.micronaut.inject.ast.ClassElement type)
    Whether the type is a model, in which case it will be copied.
    static boolean
    isPOJO(io.micronaut.inject.ast.ClassElement element)
    Whether it is considered a POJO.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelUtils

      public ModelUtils()
  • Method Details

    • isPOJO

      public static boolean isPOJO(io.micronaut.inject.ast.ClassElement element)
      Whether it is considered a POJO.
      Parameters:
      element - The type
      Returns:
      Whether it is POJO
    • isModel

      public static boolean isModel(io.micronaut.inject.ast.ClassElement type)
      Whether the type is a model, in which case it will be copied.
      Parameters:
      type - The type
      Returns:
      Whether it is a model