Class ObjectDef

java.lang.Object
io.micronaut.sourcegen.model.ObjectDef
Direct Known Subclasses:
ClassDef, EnumDef, InterfaceDef, RecordDef

public abstract sealed class ObjectDef extends Object permits ClassDef, EnumDef, InterfaceDef, RecordDef
The abstract class representing a type: class, enum, interface or record.
Since:
1.0
Author:
Denis Stepanov
  • Field Details

    • name

      protected final String name
    • modifiers

      protected final Set<Modifier> modifiers
  • Method Details

    • getMethods

      public final List<MethodDef> getMethods()
    • getProperties

      public final List<PropertyDef> getProperties()
    • getSuperinterfaces

      public final List<TypeDef> getSuperinterfaces()
    • getPackageName

      public final String getPackageName()
    • getSimpleName

      public final String getSimpleName()
    • getInnerTypes

      public final List<ObjectDef> getInnerTypes()
    • asTypeDef

      public ClassTypeDef asTypeDef()
      Get the type definition for this type.
      Returns:
      The type definition
    • getName

      public final String getName()
    • getModifiers

      public final Set<Modifier> getModifiers()
    • getModifiersArray

      public final Modifier[] getModifiersArray()
    • getAnnotations

      public final List<AnnotationDef> getAnnotations()
    • getJavadoc

      public List<String> getJavadoc()