class AnnotationDeclaration extends TypeDeclaration<AnnotationDeclaration> implements NodeWithAbstractModifier<AnnotationDeclaration>, Resolvable<ResolvedAnnotationDeclaration> {

    public AnnotationDeclaration() {
        this(null, new NodeList<>(), new NodeList<>(), new SimpleName(), new NodeList<>());
    }

    public AnnotationDeclaration(NodeList<Modifier> modifiers, String name) {
        this(null, modifiers, new NodeList<>(), new SimpleName(name), new NodeList<>());
    }

    @AllFieldsConstructor
    public AnnotationDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) {
        this(null, modifiers, annotations, name, members);
    }

    /**
     * This constructor is used by the parser and is considered private.
     */
    @Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator")
    public AnnotationDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) {
        super(tokenRange, modifiers, annotations, name, members);
        customInitialization();
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.AcceptGenerator")
    public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) {
        return v.visit(this, arg);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.AcceptGenerator")
    public <A> void accept(final VoidVisitor<A> v, final A arg) {
        v.visit(this, arg);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.CloneGenerator")
    public AnnotationDeclaration clone() {
        return (AnnotationDeclaration) accept(new CloneVisitor(), null);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator")
    public AnnotationDeclarationMetaModel getMetaModel() {
        return JavaParserMetaModel.annotationDeclarationMetaModel;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public boolean isAnnotationDeclaration() {
        return true;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public AnnotationDeclaration asAnnotationDeclaration() {
        return this;
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public void ifAnnotationDeclaration(Consumer<AnnotationDeclaration> action) {
        action.accept(this);
    }

    @Override
    public ResolvedAnnotationDeclaration resolve() {
        return getSymbolResolver().resolveDeclaration(this, ResolvedAnnotationDeclaration.class);
    }

    @Override
    @Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
    public Optional<AnnotationDeclaration> toAnnotationDeclaration() {
        return Optional.of(this);
    }

    @Override
    public FieldDeclaration addField(Type type, String name, Modifier.Keyword... modifiers) {<FILL_FUNCTION_BODY>}
}

        throw new IllegalStateException("Cannot add a field to an annotation declaration.");
    
<methods>public void <init>() ,public void <init>(NodeList<com.github.javaparser.ast.Modifier>, java.lang.String) ,public void <init>(NodeList<com.github.javaparser.ast.Modifier>, NodeList<com.github.javaparser.ast.expr.AnnotationExpr>, com.github.javaparser.ast.expr.SimpleName, NodeList<BodyDeclaration<?>>) ,public void <init>(com.github.javaparser.TokenRange, NodeList<com.github.javaparser.ast.Modifier>, NodeList<com.github.javaparser.ast.expr.AnnotationExpr>, com.github.javaparser.ast.expr.SimpleName, NodeList<BodyDeclaration<?>>) ,public com.github.javaparser.ast.body.AnnotationDeclaration addMember(BodyDeclaration<?>) ,public TypeDeclaration#RAW asTypeDeclaration() ,public TypeDeclaration<?> clone() ,public List<CallableDeclaration<?>> getCallablesWithSignature(com.github.javaparser.ast.body.CallableDeclaration.Signature) ,public Optional<java.lang.String> getFullyQualifiedName() ,public NodeList<BodyDeclaration<?>> getMembers() ,public com.github.javaparser.metamodel.TypeDeclarationMetaModel getMetaModel() ,public NodeList<com.github.javaparser.ast.Modifier> getModifiers() ,public com.github.javaparser.ast.expr.SimpleName getName() ,public void ifTypeDeclaration(Consumer<TypeDeclaration#RAW>) ,public boolean isNestedType() ,public boolean isTopLevelType() ,public boolean isTypeDeclaration() ,public boolean remove(com.github.javaparser.ast.Node) ,public boolean replace(com.github.javaparser.ast.Node, com.github.javaparser.ast.Node) ,public abstract com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration resolve() ,public com.github.javaparser.ast.body.AnnotationDeclaration setMembers(NodeList<BodyDeclaration<?>>) ,public com.github.javaparser.ast.body.AnnotationDeclaration setModifiers(NodeList<com.github.javaparser.ast.Modifier>) ,public com.github.javaparser.ast.body.AnnotationDeclaration setName(com.github.javaparser.ast.expr.SimpleName) ,public Optional<TypeDeclaration#RAW> toTypeDeclaration() <variables>private NodeList<BodyDeclaration<?>> members,private NodeList<com.github.javaparser.ast.Modifier> modifiers,private com.github.javaparser.ast.expr.SimpleName name