Interface CommentsHelper

All Known Implementing Classes:
JavaCommentsHelper

public interface CommentsHelper
Rewrite comments. This interface is implemented by JavaCommentsHelper.
  • Field Details

    • PARAMETER_COMMENT

      static final Pattern PARAMETER_COMMENT
  • Method Details

    • rewrite

      String rewrite(Input.Tok tok, int maxWidth, int column0)
      Try to rewrite comments, returning rewritten text.
      Parameters:
      tok - the comment's tok
      maxWidth - the line length for the output
      column0 - the current column
      Returns:
      the rewritten comment
    • reformatParameterComment

      static Optional<String> reformatParameterComment(Input.Tok tok)