public enum WarningLevel extends java.lang.Enum<WarningLevel>
Modifier and Type | Method and Description |
---|---|
private static void |
addDefaultWarnings(CompilerOptions options)
Add the default checking pass to the compilation options.
|
private static void |
addVerboseWarnings(CompilerOptions options)
Add all the check pass that are possibly relevant to a non-googler.
|
void |
setOptionsForWarningLevel(CompilerOptions options) |
private static void |
silenceAllWarnings(CompilerOptions options)
Silence all non-essential warnings.
|
static WarningLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WarningLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WarningLevel QUIET
public static final WarningLevel DEFAULT
public static final WarningLevel VERBOSE
public static WarningLevel[] values()
for (WarningLevel c : WarningLevel.values()) System.out.println(c);
public static WarningLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void setOptionsForWarningLevel(CompilerOptions options)
private static void silenceAllWarnings(CompilerOptions options)
private static void addDefaultWarnings(CompilerOptions options)
options
- The CompilerOptions object to set the options on.private static void addVerboseWarnings(CompilerOptions options)
options
- The CompilerOptions object to set the options on.