- java.lang.Object
-
- java.lang.Enum<CommandLine.TraceLevel>
-
- picocli.CommandLine.TraceLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandLine.TraceLevel>
- Enclosing class:
- CommandLine
public static enum CommandLine.TraceLevel extends Enum<CommandLine.TraceLevel>
Enumerates over the trace level values for filtering which internal debug statements should be printed.- Since:
- 4.7.6
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled(CommandLine.TraceLevel other)
Returns whether messages at the specifiedother
trace level would be printed for the current trace level.static CommandLine.TraceLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandLine.TraceLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final CommandLine.TraceLevel OFF
-
WARN
public static final CommandLine.TraceLevel WARN
-
INFO
public static final CommandLine.TraceLevel INFO
-
DEBUG
public static final CommandLine.TraceLevel DEBUG
-
-
Method Detail
-
values
public static CommandLine.TraceLevel[] 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 (CommandLine.TraceLevel c : CommandLine.TraceLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandLine.TraceLevel valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isEnabled
public boolean isEnabled(CommandLine.TraceLevel other)
Returns whether messages at the specifiedother
trace level would be printed for the current trace level.
-
-