Package picocli

Enum Class CommandLine.TraceLevel

java.lang.Object
java.lang.Enum<CommandLine.TraceLevel>
picocli.CommandLine.TraceLevel
All Implemented Interfaces:
Serializable, Comparable<CommandLine.TraceLevel>, Constable
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
  • Enum Constant Details

  • Constructor Details

    • TraceLevel

      private TraceLevel()
  • Method Details

    • values

      public static CommandLine.TraceLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommandLine.TraceLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isEnabled

      public boolean isEnabled(CommandLine.TraceLevel other)
      Returns whether messages at the specified other trace level would be printed for the current trace level.
    • print

      private void print(CommandLine.Tracer tracer, String msg, Object... params)
    • prefix

      private String prefix(String msg)
    • lookup

      static CommandLine.TraceLevel lookup(String key)