| Class | Description |
|---|---|
| DimensionHelpers |
Utilities for working with array dimensions.
|
| FormatFileCallable |
Encapsulates information about a file to be formatted, including which parts of the file to
format.
|
| 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.
|
| GoogleJavaFormatVersion | |
| ImportOrderer |
Orders imports in Java source code.
|
| JavaCommentsHelper |
JavaCommentsHelper extends CommentsHelper to rewrite Java comments. |
| JavacTokens |
A wrapper around javac's lexer.
|
| JavaFormatterOptions |
Options for a google-java-format invocation.
|
| JavaFormatterOptions.Builder |
A builder for
JavaFormatterOptions. |
| 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. |
| JavaOutput |
JavaOutput extends Output to represent a Java output document. |
| Main |
The main class for the Java formatter CLI.
|
| 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.
|
| Trees |
Utilities for working with
Trees. |
| TypeNameClassifier |
Heuristics for classifying qualified names as types.
|
| Enum | Description |
|---|---|
| JavaFormatterOptions.Style | |
| RemoveUnusedImports.JavadocOnlyImports |
Configuration for javadoc-only imports.
|
| SnippetFormatter.SnippetKind |
The kind of snippet to format.
|
| TypeNameClassifier.JavaCaseFormat |
Case formats used in Java identifiers.
|
| Exception | Description |
|---|---|
| FormatterException |
Checked exception class for formatter errors.
|
| UsageException |
Checked exception class for formatter command-line usage errors.
|
Copyright © 2015–2017 Google Inc.. All rights reserved.