Search in sources :

Example 1 with Enum

use of cz.habarta.typescript.generator.xmldoclet.Enum in project typescript-generator by vojtechhabarta.

the class Javadoc method enrichEnum.

private EnumModel enrichEnum(EnumModel enumModel) {
    final Enum dEnum = findJavadocEnum(enumModel.getOrigin(), dRoots);
    final List<EnumMemberModel> enrichedMembers = new ArrayList<>();
    for (EnumMemberModel member : enumModel.getMembers()) {
        final EnumMemberModel enrichedMember = enrichEnumMember(member, dEnum);
        enrichedMembers.add(enrichedMember);
    }
    final String enumComment = dEnum != null ? dEnum.getComment() : null;
    final List<TagInfo> tags = dEnum != null ? dEnum.getTag() : null;
    return enumModel.withMembers(enrichedMembers).withComments(combineComments(getComments(enumComment, tags), enumModel.getComments()));
}
Also used : Enum(cz.habarta.typescript.generator.xmldoclet.Enum) EnumMemberModel(cz.habarta.typescript.generator.compiler.EnumMemberModel) TagInfo(cz.habarta.typescript.generator.xmldoclet.TagInfo) ArrayList(java.util.ArrayList)

Aggregations

EnumMemberModel (cz.habarta.typescript.generator.compiler.EnumMemberModel)1 Enum (cz.habarta.typescript.generator.xmldoclet.Enum)1 TagInfo (cz.habarta.typescript.generator.xmldoclet.TagInfo)1 ArrayList (java.util.ArrayList)1