public final class Main extends Object
Constructor and Description |
---|
Main(PrintWriter outWriter,
PrintWriter errWriter,
InputStream inStream) |
Modifier and Type | Method and Description |
---|---|
int |
format(String... args)
The main entry point for the formatter, with some number of file names to format.
|
static void |
main(String[] args)
The main method for the formatter, with some number of file names to format.
|
static com.google.googlejavaformat.java.CommandLineOptions |
processArgs(String... args)
Parses and validates command-line flags.
|
public Main(PrintWriter outWriter, PrintWriter errWriter, InputStream inStream)
public static void main(String[] args)
args
- the command-line argumentspublic int format(String... args) throws com.google.googlejavaformat.java.UsageException
args
- the command-line argumentscom.google.googlejavaformat.java.UsageException
public static com.google.googlejavaformat.java.CommandLineOptions processArgs(String... args) throws com.google.googlejavaformat.java.UsageException
com.google.googlejavaformat.java.UsageException
Copyright © 2015–2017 Google Inc.. All rights reserved.