public static interface CommandLine.Model.ITypeInfo
Class
values are not available).
Most of the methods in this interface (but not all!) are safe to use by annotation processors.Modifier and Type | Method and Description |
---|---|
List<String> |
getActualGenericTypeArguments()
Returns the names of the type arguments if this is a generic type.
|
List<CommandLine.Model.ITypeInfo> |
getAuxiliaryTypeInfos()
Returns type information of components or elements of a
multivalue type. |
Class<?>[] |
getAuxiliaryTypes()
Returns the component class of an array, or the parameter type of a generic Collection, or the parameter
types of the key and the value of a generic Map.
|
String |
getClassName() |
String |
getClassSimpleName() |
List<String> |
getEnumConstantNames() |
Class<?> |
getType()
Returns the class that the option or parameter value should be converted to when matched on the command
line.
|
boolean |
isArray() |
boolean |
isBoolean()
|
boolean |
isCollection() |
boolean |
isEnum()
Returns
true if getType() is an enum. |
boolean |
isMap() |
boolean |
isMultiValue()
Returns
true if getType() is an array, map or collection. |
boolean |
isOptional()
|
boolean isBoolean()
boolean isMultiValue()
true
if getType()
is an array, map or collection.boolean isOptional()
boolean isArray()
boolean isCollection()
boolean isMap()
boolean isEnum()
true
if getType()
is an enum.String getClassName()
String getClassSimpleName()
List<CommandLine.Model.ITypeInfo> getAuxiliaryTypeInfos()
multivalue
type.List<String> getActualGenericTypeArguments()
["java.lang.String"]
if this type is List<String>
.Class<?> getType()
Class<?>[] getAuxiliaryTypes()