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.ObjectDescription 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 ParameterannotationThe annotation found on the main parameter field.private ParameterDescriptiondescriptionprivate booleanfirstTimeMainParameterprivate java.util.List<java.lang.Object>multipleValueNon null if the main parameter is a List. (package private) java.lang.ObjectobjectThe object on which we found the main parameter field.(package private) ParameterizedparameterizedThis field/method will contain whatever command line parameter is not an option.private java.lang.ObjectsingleValueThe 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 voidaddValue(java.lang.Object convertedValue)ParameterDescriptiongetDescription()
-
-
-
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)
-
-