All Classes

Class Description
CloseOp
A CloseOp closes a level.
CommentsHelper
Rewrite comments.
Doc
JavaInputAstVisitor outputs a sequence of Ops using OpsBuilder.
Doc.Break
A leaf node in a Doc for an optional break.
Doc.FillMode
Each Doc.Break in a Doc.Level is either Doc.FillMode.UNIFIED or Doc.FillMode.INDEPENDENT.
Doc.State
State for writing.
Doc.Token
A leaf Doc for a token.
Doc.Token.RealOrImaginary
Is a Token a real token, or imaginary (e.g., a token generated incorrectly, or an EOF)?
DocBuilder
A DocBuilder converts a sequence of Ops into a Doc.
Formatter
This is google-java-format, a new Java formatter that follows the Google Java Style Guide quite precisely---to the letter and to the spirit.
FormatterDiagnostic
An error that prevented formatting from succeeding.
FormatterException
Checked exception class for formatter errors.
FormattingError
An unchecked formatting error.
FormattingFiler
A decorating Filer implementation which formats Java source files with a Formatter.
ImportOrderer
Orders imports in Java source code.
Indent
An indent for a Doc.Level or Doc.Break.
Indent.Const
A constant function, returning a constant indent.
Indent.If
A conditional function, whose value depends on whether a break was taken.
Input
An input to the formatter.
Input.Tok
A Tok ("tock") is a token, or a comment, or a newline, or a maximal string of blanks.
Input.Token
A Token is a language-level token.
InputOutput
This interface defines methods common to an Input or an Output.
Java14InputAstVisitor
Extends JavaInputAstVisitor with support for AST nodes that were added or modified for Java 14.
JavaCommentsHelper
JavaCommentsHelper extends CommentsHelper to rewrite Java comments.
JavadocFormatter
Entry point for formatting Javadoc.
JavaFormatterOptions
Options for a google-java-format invocation.
JavaFormatterOptions.Builder
A builder for JavaFormatterOptions.
JavaFormatterOptions.Style  
JavaInput
JavaInput extends Input to represent a Java input document.
JavaInputAstVisitor
An AST visitor that builds a stream of Ops to format from the given CompilationUnitTree.
JavaInputAstVisitor.BracesOrNot
Whether to include braces.
JavaInputAstVisitor.Direction
Direction for Annotations (usually VERTICAL).
JavaInputAstVisitor.FirstDeclarationsOrNot
Whether these declarations are the first in the block.
JavaOutput
JavaOutput extends Output to represent a Java output document.
Main
The main class for the Java formatter CLI.
Newlines
Platform-independent newline handling.
Op
An Op is a member of the sequence of formatting operations emitted by OpsBuilder and transformed by DocBuilder into a Doc.
OpenOp
An OpenOp opens a level.
OpsBuilder
An OpsBuilder creates a list of Ops, which is turned into a Doc by DocBuilder.
OpsBuilder.BlankLineWanted
A request to add or remove a blank line in the output.
Output
An output from the formatter.
Output.BreakTag
Unique identifier for a break.
RemoveUnusedImports
Removes unused imports from a source file.
Replacement
Represents a range in the original source and replacement text for that range.
SnippetFormatter
Formats a subset of a compilation unit.
SnippetFormatter.SnippetKind
The kind of snippet to format.
StringWrapper
Wraps string literals that exceed the column limit.
TypeNameClassifier
Heuristics for classifying qualified names as types.
TypeNameClassifier.JavaCaseFormat
Case formats used in Java identifiers.