类 JavaCommentsHelper

java.lang.Object
com.palantir.javaformat.java.JavaCommentsHelper
所有已实现的接口:
CommentsHelper

public final class JavaCommentsHelper extends Object implements CommentsHelper
JavaCommentsHelper extends CommentsHelper to rewrite Java comments.
  • 构造器详细资料

    • JavaCommentsHelper

      public JavaCommentsHelper(String lineSeparator, com.palantir.javaformat.java.JavaFormatterOptions options)
  • 方法详细资料

    • rewrite

      public String rewrite(Input.Tok tok, int maxWidth, int column0)
      从接口复制的说明: CommentsHelper
      Try to rewrite comments, returning rewritten text.
      指定者:
      rewrite 在接口中 CommentsHelper
      参数:
      tok - the comment's tok
      maxWidth - the line length for the output
      column0 - the current column
      返回:
      the rewritten comment