Class JCommander.MainParameter

  • Enclosing class:
    JCommander

    static class JCommander.MainParameter
    extends java.lang.Object
    Description of a main parameter, which can be either a list of string or a single field. Both are subject to converters before being returned to the user.
    • Field Detail

      • parameterized

        Parameterized parameterized
        This field/method will contain whatever command line parameter is not an option.
      • object

        java.lang.Object object
        The object on which we found the main parameter field.
      • annotation

        private Parameter annotation
        The annotation found on the main parameter field.
      • multipleValue

        private java.util.List<java.lang.Object> multipleValue
        Non null if the main parameter is a List.
      • singleValue

        private java.lang.Object singleValue
        The value of the single field, if it's not a List.
      • firstTimeMainParameter

        private boolean firstTimeMainParameter
    • Constructor Detail

      • MainParameter

        MainParameter()
    • Method Detail

      • addValue

        public void addValue​(java.lang.Object convertedValue)