Module com.google.googlejavaformat
Package com.google.googlejavaformat.java
package com.google.googlejavaformat.java
-
ClassDescriptionThis is google-java-format, a new Java formatter that follows the Google Java Style Guide quite precisely---to the letter and to the spirit.Checked exception class for formatter errors.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.
JavaCommentsHelper
extendsCommentsHelper
to rewrite Java comments.Options for a google-java-format invocation.A builder forJavaFormatterOptions
.JavaInput
extendsInput
to represent a Java input document.An AST visitor that builds a stream ofOp
s to format from the givenCompilationUnitTree
.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.Kind of declaration.Direction for Annotations (usually VERTICAL).Whether these declarations are the first in the block.JavaOutput
extendsOutput
to represent a Java output document.The main class for the Java formatter CLI.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.