Package com.palantir.javaformat.java
package com.palantir.javaformat.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.Orders imports in Java source code.Records metadata about the input, namely existing blank lines that we might want to preserve, as well as what ranges can be partially formatted.
JavaCommentsHelperextendsCommentsHelperto rewrite Java comments.JavaInputextendsInputto represent a Java input document.An AST visitor that builds a stream ofOps 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 collapse empty blocks.Direction for Annotations (usually VERTICAL).Whether these declarations are the first in the block.JavaOutputextendsOutputto represent a Java output document.The main class for the Java formatter CLI.Removes unused imports from a source file.Wraps string literals that exceed the column limit.Heuristics for classifying qualified names as types.Case formats used in Java identifiers.