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()));
}
Aggregations