public interface IArgumentDescriptor
Modifier and Type | Method and Description |
---|---|
Argument.Advice |
getAdvice()
Get the
Argument.Advice provided with the annotation |
Object |
getDefaultValue()
Get the default value of the field
|
Field |
getField()
Get the annotated field
|
String |
getFlag()
Get the flag which is used in the command line to introduce the argument.
|
String |
getHelp()
Get any help on the field, for example provided by the annotation
Help |
String |
getName()
Get the name of the parameter, for example the field name of the argument in its class.
|
Class<?> |
getType()
Get the type of the annotated field
|
boolean |
isArray()
Check if the annotated field is an array
|
boolean |
isBoolean()
Check if the annotated field is a boolean or Boolean
|
boolean |
isEnum()
Check if the annotated field is an Enum
|
boolean |
isList()
Check if the annotated field is a List
|
boolean |
isMandatory()
Check if the annotated field is a mandatory parameter
|
boolean |
isMultiple()
Check if the annotated field is an array or a list
|
boolean isMultiple()
boolean isBoolean()
Object getDefaultValue()
Field getField()
String getFlag()
Argument.flag()
.boolean isArray()
boolean isList()
boolean isEnum()
boolean isMandatory()
String getName()
Class<?> getType()
String getHelp()
Help
Argument.Advice getAdvice()
Argument.Advice
provided with the annotation