/** * Appends a specific comment to the StringBuilder. * * @param comment */ private void emitDocComment(DocComment comment) { if (!comment.isExcluded()) { int type = comment.getType(); if (type == DocComment.PACKAGE) emitPackage(comment); else if (type == DocComment.CLASS || type == DocComment.INTERFACE) emitClass(comment); else if (type >= DocComment.FUNCTION && type <= DocComment.FUNCTION_SET) emitFunction(comment); else if (type == DocComment.FIELD) emitField(comment); } }