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