Package com.beust.jcommander
Class JCommander.MainParameter
- java.lang.Object
-
- com.beust.jcommander.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 Summary
Fields Modifier and Type Field Description private Parameter
annotation
The annotation found on the main parameter field.private ParameterDescription
description
private boolean
firstTimeMainParameter
private java.util.List<java.lang.Object>
multipleValue
Non null if the main parameter is a List. (package private) java.lang.Object
object
The object on which we found the main parameter field.(package private) Parameterized
parameterized
This field/method will contain whatever command line parameter is not an option.private java.lang.Object
singleValue
The value of the single field, if it's not a List.
-
Constructor Summary
Constructors Constructor Description MainParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(java.lang.Object convertedValue)
ParameterDescription
getDescription()
-
-
-
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.
-
description
private ParameterDescription description
-
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
-
-
Method Detail
-
getDescription
public ParameterDescription getDescription()
-
addValue
public void addValue(java.lang.Object convertedValue)
-
-