Op to a DocBuilder.Ops.Doc for an optional break.Break.Break.Break.Break.Break.Break.Doc.Ops from the OpsBuilder.Level.CloseOp.CloseOp closes a level.Doc for a non-token.Doc.Doc's flat value.Doc's Range of Input.Tokens.Doc's width.FormatterDiagnostic at the current position.DocBuilder.Break's extra indent.newState-1.Break.Break.Tok's 0-based column number.Break.hasColumnLimit().Doc's flat-string value; not defined (and never called) if the (@code Doc} contains forced
breaks.Replacements to convert from input to output.Replacements 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).Token.Tok's 0-based position.Input.Tokens.Token.Range of Input.Toks lying in any part on a line.Tok's text.Input.Tok.Input.Token.Input.Toks assigned to this Token.Input.Toks assigned to this Token."\n" if the text does not contain a single line
separator.Level's Level.getColumnLimitBeforeLastBreak().-1.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?Break forced?Tok a javadoc comment?Tok a newline?Tok a "//" comment?Tok a "//" comment?JavaCommentsHelper extends CommentsHelper to rewrite Java comments.JavaInput extends Input to represent a Java input document.Ops to format from the given CompilationUnitTree.Visitor constructor.JavaOutput extends Output to represent a Java output document.JavaOutput constructor.BreakBehaviour.Cases.preferBreakingLastInnerLevel(boolean).Tok's original text.Level inside a Doc.CloseOp, returning a singleton since they are all the same.Break.Break.Tok.Token.OpenOp.Break.InputOutput, compute the map from tok indices to line ranges.Doc for a non-breaking space.Doc.computeBreaks(com.palantir.javaformat.CommentsHelper, int, com.palantir.javaformat.doc.State, com.palantir.javaformat.doc.Obs.ExplorationNode), including all the alternative
hypotheses it has considered and rejected before deciding on the final formatting.Op is a member of the sequence of formatting operations emitted by OpsBuilder and transformed by
DocBuilder into a Doc.Tokens.Level.OpenOp.OpenOp.OpenOp.OpenOp opens a level.OpsBuilder constructor.Input.Token, or absent if there is none.Input.Token, or absent if there is none.Ranges of the tokens or comments lying on each line, in any part.Input.Token?text, a complete Java program.#reorderImports(String, Style) insteadNonBreakingSpace.Doc for a token.Comment was written (these are mostly comments), which can differ depending on the
starting column and the maxLength.Ops to the OpsBuilder.Doc to an Output, after breaking decisions have been made.