Package io.micronaut.sourcegen.model
Class RecordDef
java.lang.Object
io.micronaut.sourcegen.model.ObjectDef
io.micronaut.sourcegen.model.RecordDef
The class definition.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The record definition builder. -
Field Summary
Fields inherited from class io.micronaut.sourcegen.model.ObjectDef
className, innerTypes, methods, properties, superinterfaces
-
Method Summary
Modifier and TypeMethodDescriptionstatic RecordDef.RecordDefBuilder
final List<AnnotationDef>
final Modifier[]
final String
getName()
withClassName
(ClassTypeDef.ClassName className) Creates a copy of this definition with a new class name.Methods inherited from class io.micronaut.sourcegen.model.ObjectDef
asTypeDef, getContextualType, getContextualType, getInnerTypes, getMethods, getPackageName, getProperties, getSimpleName, getSuperinterfaces
-
Field Details
-
name
-
modifiers
-
annotations
-
javadoc
-
-
Method Details
-
withClassName
Description copied from class:ObjectDef
Creates a copy of this definition with a new class name.- Specified by:
withClassName
in classObjectDef
- Parameters:
className
- The class name- Returns:
- the copy of this object definition with a new class name
-
builder
-
getTypeVariables
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-