All Classes and Interfaces
Class
Description
A
CloseOp
closes a level.Rewrite comments.
A leaf node in a
Doc
for an optional break.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)?
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.
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.Extends
JavaInputAstVisitor
with support for AST nodes that were added or modified in
Java 17.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
Op
s 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.
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.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.