Class AnnotationObjectDef.AnnotationMemberDef

java.lang.Object
io.micronaut.sourcegen.model.AnnotationObjectDef.AnnotationMemberDef
Enclosing class:
AnnotationObjectDef

public static final class AnnotationObjectDef.AnnotationMemberDef extends Object
A definition for annotation member (i.e. property).
Since:
1.7
Author:
Andriy Dmytruk
  • Field Details

    • name

      protected final String name
    • modifiers

      protected final EnumSet<Modifier> modifiers
    • annotations

      protected final List<AnnotationDef> annotations
    • javadoc

      protected final List<String> javadoc
    • synthetic

      protected final boolean synthetic
  • Method Details

    • builder

      public static AnnotationObjectDef.AnnotationMemberDefBuilder builder(String memberName, TypeDef type)
      Create a builder.
      Parameters:
      memberName - The name of the member
      type - The member type
      Returns:
      The builder
    • getType

      public TypeDef getType()
      Get the type of the member.
      Returns:
      the type
    • getDefaultValue

      public ExpressionDef.Constant getDefaultValue()
      Get the default value of the member.
      Returns:
      the default value
    • isSynthetic

      public boolean isSynthetic()
      Returns:
      Is synthetic element
    • getName

      public final String getName()
    • getModifiers

      public final Set<Modifier> getModifiers()
    • getModifiersArray

      public final Modifier[] getModifiersArray()
    • getAnnotations

      public final List<AnnotationDef> getAnnotations()
    • getJavadoc

      public List<String> getJavadoc()