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 Details
-
name
-
modifiers
-
-
Method Details
-
getMethods
-
getSuperinterfaces
-
getPackageName
-
getSimpleName
-
asTypeDef
Get the type definition for this type.- Returns:
- The type definition
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-