Enum Class Parser.Arity

java.lang.Object
java.lang.Enum<Parser.Arity>
software.amazon.smithy.cli.Parser.Arity
All Implemented Interfaces:
Serializable, Comparable<Parser.Arity>, Constable
Enclosing class:
Parser

public static enum Parser.Arity extends Enum<Parser.Arity>
Defines the arity of an argument.
  • Enum Constant Details

    • NONE

      public static final Parser.Arity NONE
      The argument accepts no value.
    • ONE

      public static final Parser.Arity ONE
      The argument accepts a single value.
    • MANY

      public static final Parser.Arity MANY
      The argument accepts one or more values.
  • Method Details

    • values

      public static Parser.Arity[] 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 Parser.Arity 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