Package com.google.javascript.jscomp
Enum CommandLineRunner.FormattingOption
- java.lang.Object
-
- java.lang.Enum<CommandLineRunner.FormattingOption>
-
- com.google.javascript.jscomp.CommandLineRunner.FormattingOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommandLineRunner.FormattingOption>
- Enclosing class:
- CommandLineRunner
public static enum CommandLineRunner.FormattingOption extends java.lang.Enum<CommandLineRunner.FormattingOption>
Set of options that can be used with the --formatting flag.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRETTY_PRINT
PRINT_INPUT_DELIMITER
SINGLE_QUOTES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandLineRunner.FormattingOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommandLineRunner.FormattingOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRETTY_PRINT
public static final CommandLineRunner.FormattingOption PRETTY_PRINT
-
PRINT_INPUT_DELIMITER
public static final CommandLineRunner.FormattingOption PRINT_INPUT_DELIMITER
-
SINGLE_QUOTES
public static final CommandLineRunner.FormattingOption SINGLE_QUOTES
-
-
Method Detail
-
values
public static CommandLineRunner.FormattingOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommandLineRunner.FormattingOption c : CommandLineRunner.FormattingOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandLineRunner.FormattingOption valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-