Module com.google.googlejavaformat
Package com.google.googlejavaformat.java
-
Class Summary Class Description 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.ImportOrderer Orders imports in Java source code.JavaCommentsHelper JavaCommentsHelperextendsCommentsHelperto rewrite Java comments.JavaFormatterOptions Options for a google-java-format invocation.JavaFormatterOptions.Builder A builder forJavaFormatterOptions.JavaInput JavaInputextendsInputto represent a Java input document.JavaInputAstVisitor An AST visitor that builds a stream ofOps to format from the givenCompilationUnitTree.JavaOutput JavaOutputextendsOutputto 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.StringWrapper Wraps string literals that exceed the column limit.TypeNameClassifier Heuristics for classifying qualified names as types. -
Enum Summary Enum Description JavaFormatterOptions.Style JavaInputAstVisitor.BracesOrNot Whether to include braces.JavaInputAstVisitor.Direction Direction for Annotations (usually VERTICAL).JavaInputAstVisitor.FirstDeclarationsOrNot Whether these declarations are the first in the block.SnippetFormatter.SnippetKind The kind of snippet to format.TypeNameClassifier.JavaCaseFormat Case formats used in Java identifiers. -
Exception Summary Exception Description FormatterException Checked exception class for formatter errors.