Package com.google.googlejavaformat
Interface CommentsHelper
-
- All Known Implementing Classes:
JavaCommentsHelper
public interface CommentsHelperRewrite comments. This interface is implemented byJavaCommentsHelper.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.PatternPARAMETER_COMMENT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Optional<java.lang.String>reformatParameterComment(Input.Tok tok)java.lang.Stringrewrite(Input.Tok tok, int maxWidth, int column0)Try to rewrite comments, returning rewritten text.
-
-
-
Method Detail
-
rewrite
java.lang.String rewrite(Input.Tok tok, int maxWidth, int column0)
Try to rewrite comments, returning rewritten text.- Parameters:
tok- the comment's tokmaxWidth- the line length for the outputcolumn0- the current column- Returns:
- the rewritten comment
-
reformatParameterComment
static java.util.Optional<java.lang.String> reformatParameterComment(Input.Tok tok)
-
-