Uses of Interface
picocli.CommandLine.ITypeConverter
-
Uses of CommandLine.ITypeConverter in picocli
Classes in picocli that implement CommandLine.ITypeConverterModifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
Converts"true"
or"false"
to aBoolean
.(package private) static class
Converts text to aByte
by delegating toByte.valueOf(String)
.(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
Converts text to aInetAddress
by delegating toInetAddress.getByName(String)
.(package private) static class
Converts text to anInteger
by delegating toInteger.valueOf(String)
.(package private) static class
Converts text inyyyy-mm-dd
format to ajava.util.Date
.(package private) static class
Converts text in any of the following formats to ajava.sql.Time
:HH:mm
,HH:mm:ss
,HH:mm:ss.SSS
,HH:mm:ss,SSS
.(package private) static class
Converts text to aLong
by delegating toLong.valueOf(String)
.(package private) static class
(package private) static class
(package private) static class
(package private) static class
Converts text to aShort
by delegating toShort.valueOf(String)
.(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
static final class
Converter that can be used to signal to picocli that it should use the default converter.Fields in picocli declared as CommandLine.ITypeConverterModifier and TypeFieldDescriptionprivate CommandLine.ITypeConverter<?>[]
CommandLine.Model.ArgSpec.Builder.converters
private final CommandLine.ITypeConverter<?>[]
CommandLine.Model.ArgSpec.converters
Fields in picocli with type parameters of type CommandLine.ITypeConverterModifier and TypeFieldDescriptionprivate final Map
<Class<?>, CommandLine.ITypeConverter<?>> CommandLine.Interpreter.converterRegistry
Methods in picocli that return CommandLine.ITypeConverterModifier and TypeMethodDescriptionCommandLine.Model.ArgSpec.Builder.converters()
Returns one or moretype converters
to use to convert the command line argument into a strongly typed value (or key-value pair for map fields).CommandLine.Model.ArgSpec.converters()
Returns one or moretype converters
to use to convert the command line argument into a strongly typed value (or key-value pair for map fields).private static CommandLine.ITypeConverter<?>[]
CommandLine.DefaultFactory.createConverter
(CommandLine.IFactory factory, Class<? extends CommandLine.ITypeConverter<?>>[] classes) private CommandLine.ITypeConverter
<?> CommandLine.Interpreter.getActualTypeConverter
(Class<?> type, CommandLine.Model.ArgSpec argSpec) private CommandLine.ITypeConverter
<Object> CommandLine.Interpreter.getEnumTypeConverter
(Class<?> type) private CommandLine.ITypeConverter
<?> CommandLine.Interpreter.getTypeConverter
(Class<?>[] types, CommandLine.Model.ArgSpec argSpec, int index) Methods in picocli with parameters of type CommandLine.ITypeConverterModifier and TypeMethodDescriptionprivate boolean
CommandLine.Interpreter.canConsumeOneMapArgument
(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, String argDescription) private void
CommandLine.Interpreter.consumeOneMapArgument
(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, String arg, Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, Map<Object, Object> result, int index, String argDescription) CommandLine.Model.ArgSpec.Builder.converters
(CommandLine.ITypeConverter<?>... cs) Sets option/positional param-specific converter (or converters for Maps), and returns this builder.<K> CommandLine
CommandLine.registerConverter
(Class<K> cls, CommandLine.ITypeConverter<K> converter) Registers the specified type converter for the specified class.private Object
CommandLine.Interpreter.tryConvert
(CommandLine.Model.ArgSpec argSpec, int index, CommandLine.ITypeConverter<?> converter, String value, int typeIndex)