Package com.beust.jcommander
Class JCommander.MainParameter
java.lang.Object
com.beust.jcommander.JCommander.MainParameter
- Enclosing class:
- JCommander
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
FieldsModifier and TypeFieldDescriptionprivate Parameter
The annotation found on the main parameter field.private ParameterDescription
private boolean
Non null if the main parameter is a List. (package private) Object
The object on which we found the main parameter field.(package private) Parameterized
This field/method will contain whatever command line parameter is not an option.private Object
The value of the single field, if it's not a List. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Field Details
-
parameterized
Parameterized parameterizedThis field/method will contain whatever command line parameter is not an option. -
object
Object objectThe object on which we found the main parameter field. -
annotation
The annotation found on the main parameter field. -
description
-
multipleValue
Non null if the main parameter is a List. -
singleValue
The value of the single field, if it's not a List. -
firstTimeMainParameter
private boolean firstTimeMainParameter
-
-
Constructor Details
-
MainParameter
MainParameter()
-
-
Method Details
-
getDescription
-
addValue
-