All Classes
| Class | Description |
|---|---|
| CloseOp |
A
CloseOp closes a level. |
| CommentsHelper |
Rewrite comments.
|
| Doc | |
| Doc.Break |
A leaf node in a
Doc for an optional break. |
| Doc.FillMode | |
| 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 | |
| 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 | |
| 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 | |
| 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 | |
| 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.
|