public final class JavaCommentsHelper extends java.lang.Object implements CommentsHelper
JavaCommentsHelper
extends CommentsHelper
to rewrite Java comments.Constructor and Description |
---|
JavaCommentsHelper(java.lang.String lineSeparator,
JavaFormatterOptions options) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
rewrite(Input.Tok tok,
int maxWidth,
int column0)
Try to rewrite comments, returning rewritten text.
|
public JavaCommentsHelper(java.lang.String lineSeparator, JavaFormatterOptions options)
public java.lang.String rewrite(Input.Tok tok, int maxWidth, int column0)
CommentsHelper
rewrite
in interface CommentsHelper
tok
- the comment's tokmaxWidth
- the line length for the outputcolumn0
- the current columnCopyright © 2015-2018 Google Inc.. All Rights Reserved.