All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.model.ComponentDocFactory Maven / Gradle / Ivy

There is a newer version: 0.29.0
Show newest version
package poussecafe.doc.model;

import javax.lang.model.element.Element;
import poussecafe.domain.Service;

public class ComponentDocFactory implements Service {

    public ComponentDoc buildDoc(String name, Element doc) {
        return new ComponentDoc.Builder()
                .name(name)
                .description(annotationsResolver.renderCommentBody(doc))
                .shortDescription(annotationsResolver.shortDescription(doc))
                .trivial(annotationsResolver.isTrivial(doc))
                .build();
    }

    private AnnotationsResolver annotationsResolver;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy