/** * Get the number of {@link InlineHintModel} instances attached to this {@link ReportFileModel} */ default long getInlineHintCount() { return getInlineHints().size(); }
/** * Get the number of {@link InlineHintModel} instances attached to this {@link ReportFileModel} */ default long getInlineHintCount() { return getInlineHints().size(); }
/** * This is used by the Javascript in the source rendering template to provide code assist blocks in the rendered * output. */ default String getSourceBlock() { StringBuilder builder = new StringBuilder(); boolean first = true; for (InlineHintModel line : getSourceFileModel().getInlineHints()) { if (!first) { builder.append(","); } builder.append(line.getLineNumber()); if (first) { first = false; } } return builder.toString(); } }
public static Set<String> gatherReportFileTags(ReportFileModel reportFileModel) { Set<String> allTags = new HashSet<>(); for (ClassificationModel classificationModel : reportFileModel.getClassificationModels()) { for (String tag : classificationModel.getTags()) allTags.add(tag); } for (InlineHintModel inlineHintModel : reportFileModel.getInlineHints()) { for (String tag : inlineHintModel.getTags()) allTags.add(tag); } return allTags; } }
/** * This is used by the Javascript in the source rendering template to provide code assist blocks in the rendered * output. */ default String getSourceBlock() { StringBuilder builder = new StringBuilder(); boolean first = true; for (InlineHintModel line : getSourceFileModel().getInlineHints()) { if (!first) { builder.append(","); } builder.append(line.getLineNumber()); if (first) { first = false; } } return builder.toString(); } }
public static Set<String> gatherReportFileTags(ReportFileModel reportFileModel) { Set<String> allTags = new HashSet<>(); for (ClassificationModel classificationModel : reportFileModel.getClassificationModels()) { for (String tag : classificationModel.getTags()) allTags.add(tag); } for (InlineHintModel inlineHintModel : reportFileModel.getInlineHints()) { for (String tag : inlineHintModel.getTags()) allTags.add(tag); } return allTags; } }