类 Main
java.lang.Object
com.palantir.javaformat.java.Main
The main class for the Java formatter CLI.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intThe main entry point for the formatter, with some number of file names to format.static voidThe main method for the formatter, with some number of file names to format.static com.palantir.javaformat.java.CommandLineOptionsprocessArgs(String... args) Parses and validates command-line flags.
-
构造器详细资料
-
Main
-
-
方法详细资料
-
main
The main method for the formatter, with some number of file names to format. We process them in parallel, but we must be careful; if multiple file names refer to the same file (which is hard to determine), we must serialize their updates.- 参数:
args- the command-line arguments
-
format
The main entry point for the formatter, with some number of file names to format. We process them in parallel, but we must be careful; if multiple file names refer to the same file (which is hard to determine), we must serialize their update.- 参数:
args- the command-line arguments- 抛出:
com.palantir.javaformat.java.UsageException
-
processArgs
public static com.palantir.javaformat.java.CommandLineOptions processArgs(String... args) throws com.palantir.javaformat.java.UsageException Parses and validates command-line flags.- 抛出:
com.palantir.javaformat.java.UsageException
-