Op
to a DocBuilder
.Op
s.Doc.Break
.Doc.Break
.Doc.Break
.Doc.Break
.Doc.Break
.Doc
.Op
s from the OpsBuilder
.JavaFormatterOptions
.CloseOp
.CloseOp
closes a level.-1
if the error
does not have a column.Doc
.FormatterDiagnostic
at the current position.Doc
for an optional break.Doc
for a token.DocBuilder
.-1
.Doc.Break
.Doc.Break
.Tok
's 0
-based column number.CommentsHelper
.Replacement
s to convert from input to output.Replacement
s to convert from input to output.Tok
's index.OpsBuilder
's Input
.null
if the input does not end in a
break.Tok
's original text (before processing escapes).Tok
's 0
-based position.Input.Token
s.Token
.Tok
's text.Input.Tok
.RawTok
s.Input.Tok
s assigned to this Token
.Input.Tok
s assigned to this Token
."\n"
if the text does not contain a
single line separator.Doc.Level
or Doc.Break
.indent
spaces.Tok
("tock") is a token, or a comment, or a newline, or a maximal string of blanks.Token
is a language-level token.Tok
a comment?Tok
a javadoc comment?Tok
a newline?Tok
a "//" comment?Tok
a "//" comment?JavaCommentsHelper
extends CommentsHelper
to rewrite Java comments.JavaFormatterOptions
.JavaInput
extends Input
to represent a Java input document.Op
s to format from the given CompilationUnitTree
.Visitor
constructor.JavaOutput
extends Output
to represent a Java output document.JavaOutput
constructor.Tok
's original text.-1
if the error does not have a
line number.CloseOp
, returning a singleton since they are all the same.Break
.Break
.OpenOp
.Break
.InputOutput
, compute the map from tok indices to line ranges.Op
is a member of the sequence of formatting operations emitted by OpsBuilder
and transformed by DocBuilder
into a Doc
.Doc.Token
s.OpenOp
.OpenOp
opens a level.OpsBuilder
constructor.Input.Token
, or absent if there is none.Range
s of the tokens or comments beginning on each line.Range
s of the tokens or comments ending on each line.Range
s of the tokens or comments lying on each line, in any part.text
, a complete Java program.Doc.Space
.Tree
s.Op
s to the OpsBuilder
.Doc
to an Output
, after breaking decisions have been made.Copyright © 2015–2017 Google Inc.. All rights reserved.