/** * Returns Javadoc description of a field * * @param field * @return */ private String getFieldJavaDocDescription(FieldMetadata field) { if (field.getCommentStructure() == null || field.getCommentStructure().isEmpty()) { return ""; } List<AbstractComment> comments = field.getCommentStructure().asList(); List<String> descriptions = new ArrayList<String>(); for (AbstractComment comment : comments) { if (comment instanceof JavadocComment) { JavadocComment javaDoc = (JavadocComment) comment; descriptions.add(javaDoc.getDescription()); } } return StringUtils.join(descriptions, "\n"); }
public FieldMetadataBuilder(final FieldMetadata existing) { super(existing); init(existing.getFieldName(), existing.getFieldType(), existing.getFieldInitializer()); this.commentStructure = existing.getCommentStructure(); }
public FieldMetadataBuilder(final String declaredbyMetadataId, final FieldMetadata existing) { super(declaredbyMetadataId, existing); init(existing.getFieldName(), existing.getFieldType(), existing.getFieldInitializer()); this.commentStructure = existing.getCommentStructure(); }
if (field.getCommentStructure() != null) { field.getCommentStructure()); field.getCommentStructure());
CommentStructure commentStructure = field.getCommentStructure(); if (commentStructure == null || commentStructure.isEmpty()) {
/** * Returns Javadoc description of a field * * @param field * @return */ private String getFieldJavaDocDescription(FieldMetadata field) { if (field.getCommentStructure() == null || field.getCommentStructure().isEmpty()) { return ""; } List<AbstractComment> comments = field.getCommentStructure().asList(); List<String> descriptions = new ArrayList<String>(); for (AbstractComment comment : comments) { if (comment instanceof JavadocComment) { JavadocComment javaDoc = (JavadocComment) comment; descriptions.add(javaDoc.getDescription()); } } return StringUtils.join(descriptions, "\n"); }
public FieldMetadataBuilder(final FieldMetadata existing) { super(existing); init(existing.getFieldName(), existing.getFieldType(), existing.getFieldInitializer()); this.commentStructure = existing.getCommentStructure(); }
public FieldMetadataBuilder(final String declaredbyMetadataId, final FieldMetadata existing) { super(declaredbyMetadataId, existing); init(existing.getFieldName(), existing.getFieldType(), existing.getFieldInitializer()); this.commentStructure = existing.getCommentStructure(); }
CommentStructure commentStructure = field.getCommentStructure(); if (commentStructure == null || commentStructure.isEmpty()) {