/** * Returns a map of all the C++ style comments. The key is a line number, * the value is the comment {@link TextBlock} at the line. * @return the Map of comments * @deprecated Use {@link #getSingleLineComments()} instead. */ @Deprecated public Map<Integer, TextBlock> getCppComments() { return getSingleLineComments(); }
/** * Collects all the suppression tags for all comments into a list and * sorts the list. */ private void tagSuppressions() { tags.clear(); final FileContents contents = getFileContents(); if (checkCPP) { tagSuppressions(contents.getSingleLineComments().values()); } if (checkC) { final Collection<List<TextBlock>> cComments = contents .getBlockComments().values(); cComments.forEach(this::tagSuppressions); } Collections.sort(tags); }
/** * Collects all the suppression tags for all comments into a list and * sorts the list. */ private void tagSuppressions() { tags.clear(); final FileContents contents = getFileContents(); if (checkCPP) { tagSuppressions(contents.getSingleLineComments().values()); } if (checkC) { final Collection<List<TextBlock>> cComments = contents.getBlockComments().values(); cComments.forEach(this::tagSuppressions); } }
@Override public void beginTree(DetailAST rootAST) { singlelineComments = getFileContents().getSingleLineComments(); blockComments = getFileContents().getBlockComments(); }
@Override public void beginTree(DetailAST rootAST) { final Map<Integer, TextBlock> cppComments = getFileContents() .getSingleLineComments(); final Map<Integer, List<TextBlock>> cComments = getFileContents() .getBlockComments();
/** * Returns a map of all the C++ style comments. The key is a line number, * the value is the comment {@link TextBlock} at the line. * @return the Map of comments * @deprecated Use {@link #getSingleLineComments()} instead. */ @Deprecated public Map<Integer, TextBlock> getCppComments() { return getSingleLineComments(); }
/** * Collects all the suppression tags for all comments into a list and * sorts the list. */ private void tagSuppressions() { tags.clear(); final FileContents contents = getFileContents(); if (checkCPP) { tagSuppressions(contents.getSingleLineComments().values()); } if (checkC) { final Collection<List<TextBlock>> cComments = contents .getBlockComments().values(); cComments.forEach(this::tagSuppressions); } Collections.sort(tags); }
/** * Collects all the suppression tags for all comments into a list and * sorts the list. */ private void tagSuppressions() { tags.clear(); final FileContents contents = getFileContents(); if (checkCPP) { tagSuppressions(contents.getSingleLineComments().values()); } if (checkC) { final Collection<List<TextBlock>> cComments = contents.getBlockComments().values(); cComments.forEach(this::tagSuppressions); } }
@Override public void beginTree(DetailAST rootAST) { singlelineComments = getFileContents().getSingleLineComments(); blockComments = getFileContents().getBlockComments(); }
@Override public void beginTree(DetailAST rootAST) { final Map<Integer, TextBlock> cppComments = getFileContents() .getSingleLineComments(); final Map<Integer, List<TextBlock>> cComments = getFileContents() .getBlockComments();