Package io.micronaut.sourcegen.model
Class AnnotationObjectDef
java.lang.Object
io.micronaut.sourcegen.model.ObjectDef
io.micronaut.sourcegen.model.AnnotationObjectDef
The definition for an annotation class.
- Since:
- 1.7
- Author:
- Andriy Dmyturk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A definition for annotation member (i.e.static final class
Builder forAnnotationObjectDef.AnnotationMemberDef
.static final class
The builder for annotation object. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AnnotationDef>
protected final String
protected final boolean
Fields inherited from class io.micronaut.sourcegen.model.ObjectDef
className, innerTypes, methods, properties, superinterfaces
-
Method Summary
Modifier and TypeMethodDescriptionCreate the builder.final List<AnnotationDef>
Get fields.Get the members of this annotation definition.final Modifier[]
final String
getName()
boolean
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
-
synthetic
protected final boolean synthetic
-
-
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
-
getFields
Get fields.- Returns:
- The fields
-
getMembers
Get the members of this annotation definition.- Returns:
- The members
-
builder
Create the builder.- Parameters:
name
- The annotation classname- Returns:
- The builder
-
isSynthetic
public boolean isSynthetic()- Returns:
- Is synthetic element
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-