Package io.micronaut.sourcegen.model
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the type definition for this type.final List<AnnotationDef>
final Modifier[]
final String
getName()
final String
final List<PropertyDef>
final String
-
Field Details
-
name
-
modifiers
-
-
Method Details
-
getMethods
-
getProperties
-
getSuperinterfaces
-
getPackageName
-
getSimpleName
-
getInnerTypes
-
asTypeDef
Get the type definition for this type.- Returns:
- The type definition
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-