Package io.micronaut.sourcegen.model
Class ClassDef
java.lang.Object
io.micronaut.sourcegen.model.ObjectDef
io.micronaut.sourcegen.model.ClassDef
The class definition.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe class definition builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AnnotationDef>protected final Stringprotected final booleanFields inherited from class io.micronaut.sourcegen.model.ObjectDef
className, innerTypes, methods, properties, superinterfaces -
Method Summary
Modifier and TypeMethodDescriptionGet the type definition for this type.static ClassDef.ClassDefBuilder@Nullable FieldDeffinal List<AnnotationDef>@NonNull FieldDeffinal Modifier[]final StringgetName()@Nullable StatementDef@Nullable ClassTypeDefbooleanbooleantoString()withClassName(ClassTypeDef.ClassName className) Creates a copy of this definition with a new class name.Methods inherited from class io.micronaut.sourcegen.model.ObjectDef
getContextualType, getContextualType, getInnerTypes, getMethods, getPackageName, getProperties, getSimpleName, getSuperinterfaces
-
Field Details
-
name
-
modifiers
-
annotations
-
javadoc
-
synthetic
protected final boolean synthetic
-
-
Method Details
-
withClassName
Description copied from class:ObjectDefCreates a copy of this definition with a new class name.- Specified by:
withClassNamein classObjectDef- Parameters:
className- The class name- Returns:
- the copy of this object definition with a new class name
-
asTypeDef
Description copied from class:ObjectDefGet the type definition for this type. -
builder
-
getFields
-
getTypeVariables
-
getSuperclass
-
findField
-
getField
-
hasField
-
getStaticInitializer
-
toString
-
isSynthetic
public boolean isSynthetic()- Returns:
- Is synthetic element
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-