All Classes and Interfaces

Class
Description
A CloseOp closes a level.
Rewrite comments.
JavaInputAstVisitor outputs a sequence of Ops using OpsBuilder.
A leaf node in a Doc for an optional break.
Each Doc.Break in a Doc.Level is either Doc.FillMode.UNIFIED or Doc.FillMode.INDEPENDENT.
State for writing.
A leaf Doc for a token.
Is a Token a real token, or imaginary (e.g., a token generated incorrectly, or an EOF)?
A DocBuilder converts a sequence of Ops into a Doc.
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.
An error that prevented formatting from succeeding.
Checked exception class for formatter errors.
An unchecked formatting error.
A decorating Filer implementation which formats Java source files with a Formatter.
Provide a way to be invoked without necessarily starting a new VM.
Provide a way to be invoked without necessarily starting a new VM.
Orders imports in Java source code.
An indent for a Doc.Level or Doc.Break.
A constant function, returning a constant indent.
A conditional function, whose value depends on whether a break was taken.
An input to the formatter.
A Tok ("tock") is a token, or a comment, or a newline, or a maximal string of blanks.
A Token is a language-level token.
This interface defines methods common to an Input or an Output.
Extends JavaInputAstVisitor with support for AST nodes that were added or modified in Java 21.
JavaCommentsHelper extends CommentsHelper to rewrite Java comments.
Entry point for formatting Javadoc.
Options for a google-java-format invocation.
A builder for JavaFormatterOptions.
 
JavaInput extends Input to represent a Java input document.
An AST visitor that builds a stream of Ops to format from the given CompilationUnitTree.
Whether to allow leading blank lines in blocks.
Whether to allow trailing blank lines in blocks.
Whether to include braces.
Whether to break or not.
Whether to collapse empty blocks.
Kind of declaration.
Direction for Annotations (usually VERTICAL).
Whether these declarations are the first in the block.
JavaOutput extends Output to represent a Java output document.
The main class for the Java formatter CLI.
Platform-independent newline handling.
An Op is a member of the sequence of formatting operations emitted by OpsBuilder and transformed by DocBuilder into a Doc.
An OpenOp opens a level.
An OpsBuilder creates a list of Ops, which is turned into a Doc by DocBuilder.
A request to add or remove a blank line in the output.
An output from the formatter.
Unique identifier for a break.
Removes unused imports from a source file.
Represents a range in the original source and replacement text for that range.
Formats a subset of a compilation unit.
The kind of snippet to format.
Wraps string literals that exceed the column limit.
Heuristics for classifying qualified names as types.
Case formats used in Java identifiers.