All Classes and Interfaces
Class
Description
String reader designed for use from the lexer.
A
CloseOp closes a level.Command line options for google-java-format.
A parser for
CommandLineOptions.Rewrite comments.
Utilities for working with array dimensions.
The array dimension specifiers (including any type annotations) associated with a type.
A leaf node in a
Doc for an optional break.A
Level inside a Doc.A Leaf node in a
Doc for a non-breaking space.State for writing.
A leaf node in a
Doc for a non-token.A leaf
Doc for a token.Is a Token a real token, or imaginary (e.g., a token generated incorrectly, or an EOF)?
Encapsulates information about a file to be formatted, including which parts of the file to
format.
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
JavaFileObject decorator which formats source code.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.
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.Extends
Java17InputAstVisitor with support for AST nodes that were added or modified in
Java 21.JavaCommentsHelper extends CommentsHelper to rewrite Java comments.A wrapper around javac's lexer.
A
JavaTokenizer that saves comments.A
Tokens.Comment that saves its text and start position.An unprocessed input token, including whitespace and comments.
Entry point for formatting Javadoc.
Lexer for the Javadoc formatter.
Stateful object that accepts "requests" and "writes," producing formatted Javadoc.
The kind of whitespace that has been requested between the previous and next tokens.
Options for a google-java-format invocation.
A builder for
JavaFormatterOptions.JavaInput extends Input to represent a Java input document.A
JavaInput is a sequence of JavaInput.Toks that cover the Java input.A
JavaInput.Token contains a token JavaInput.Tok and its associated non-tokens; each non-token
JavaInput.Tok belongs to one JavaInput.Token.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.
Represents an annotation or a modifier in a
ModifiersTree.Whether to include braces.
Whether to break or not.
Whether to collapse empty blocks.
Kind of declaration.
The modifiers annotations for a declaration, grouped in to a prefix that contains all of the
declaration annotations and modifiers, and a suffix of type annotations.
Whether or not to include dimensions.
Direction for Annotations (usually VERTICAL).
Whether these declarations are the first in the block.
Whether the formal parameter declaration is a receiver.
Whether or not the declaration is Varargs.
JavaOutput extends Output to represent a Java output document.The main class for the Java formatter CLI.
Fixes sequences of modifiers to be in JLS order.
A class that contains the tokens corresponding to a modifier.
Mutable integer for tracking the level of nesting.
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.
Javadoc token.
Javadoc token type.
Utilities for working with
Trees.Heuristics for classifying qualified names as types.
Case formats used in Java identifiers.
A state machine for classifying qualified names.
Checked exception class for formatter command-line usage errors.