Uses of Interface
picocli.CommandLine.ITypeConverter
-
Packages that use CommandLine.ITypeConverter Package Description picocli Provides classes and interfaces for the main picocli command line parsing andautocompletion
functionality.picocli.codegen.annotation.processing -
-
Uses of CommandLine.ITypeConverter in picocli
Classes in picocli that implement CommandLine.ITypeConverter Modifier and Type Class Description (package private) static class
CommandLine.BuiltIn.BigDecimalConverter
(package private) static class
CommandLine.BuiltIn.BigIntegerConverter
(package private) static class
CommandLine.BuiltIn.BooleanConverter
Converts"true"
or"false"
to aBoolean
.(package private) static class
CommandLine.BuiltIn.ByteConverter
Converts text to aByte
by delegating toByte.valueOf(String)
.(package private) static class
CommandLine.BuiltIn.ByteOrderConverter
(package private) static class
CommandLine.BuiltIn.CharacterConverter
(package private) static class
CommandLine.BuiltIn.CharArrayConverter
(package private) static class
CommandLine.BuiltIn.CharSequenceConverter
(package private) static class
CommandLine.BuiltIn.CharsetConverter
(package private) static class
CommandLine.BuiltIn.ClassConverter
(package private) static class
CommandLine.BuiltIn.CurrencyConverter
(package private) static class
CommandLine.BuiltIn.DoubleConverter
(package private) static class
CommandLine.BuiltIn.FileConverter
(package private) static class
CommandLine.BuiltIn.FloatConverter
(package private) static class
CommandLine.BuiltIn.InetAddressConverter
Converts text to aInetAddress
by delegating toInetAddress.getByName(String)
.(package private) static class
CommandLine.BuiltIn.IntegerConverter
Converts text to anInteger
by delegating toInteger.valueOf(String)
.(package private) static class
CommandLine.BuiltIn.ISO8601DateConverter
Converts text inyyyy-mm-dd
format to ajava.util.Date
.(package private) static class
CommandLine.BuiltIn.ISO8601TimeConverter
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
CommandLine.BuiltIn.LongConverter
Converts text to aLong
by delegating toLong.valueOf(String)
.(package private) static class
CommandLine.BuiltIn.NetworkInterfaceConverter
(package private) static class
CommandLine.BuiltIn.PatternConverter
(package private) static class
CommandLine.BuiltIn.ReflectionConverter
(package private) static class
CommandLine.BuiltIn.ShortConverter
Converts text to aShort
by delegating toShort.valueOf(String)
.(package private) static class
CommandLine.BuiltIn.StringBuilderConverter
(package private) static class
CommandLine.BuiltIn.StringConverter
(package private) static class
CommandLine.BuiltIn.TimeZoneConverter
(package private) static class
CommandLine.BuiltIn.URIConverter
(package private) static class
CommandLine.BuiltIn.URLConverter
(package private) static class
CommandLine.BuiltIn.UUIDConverter
Fields in picocli declared as CommandLine.ITypeConverter Modifier and Type Field Description private CommandLine.ITypeConverter<?>[]
CommandLine.Model.ArgSpec.Builder. converters
private CommandLine.ITypeConverter<?>[]
CommandLine.Model.ArgSpec. converters
Fields in picocli with type parameters of type CommandLine.ITypeConverter Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,CommandLine.ITypeConverter<?>>
CommandLine.Interpreter. converterRegistry
Methods in picocli that return CommandLine.ITypeConverter Modifier and Type Method Description CommandLine.ITypeConverter<?>[]
CommandLine.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.ITypeConverter<?>[]
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, java.lang.Class<? extends CommandLine.ITypeConverter<?>>[] classes)
private CommandLine.ITypeConverter<?>
CommandLine.Interpreter. getActualTypeConverter(java.lang.Class<?> type, CommandLine.Model.ArgSpec argSpec)
private CommandLine.ITypeConverter<java.lang.Object>
CommandLine.Interpreter. getEnumTypeConverter(java.lang.Class<?> type)
private CommandLine.ITypeConverter<?>
CommandLine.Interpreter. getTypeConverter(java.lang.Class<?>[] types, CommandLine.Model.ArgSpec argSpec, int index)
Methods in picocli that return types with arguments of type CommandLine.ITypeConverter Modifier and Type Method Description java.lang.Class<? extends CommandLine.ITypeConverter<?>>[]
converter()
Optionally specify one or moreCommandLine.ITypeConverter
classes to use to convert the command line argument into a strongly typed value (or key-value pair for map fields).java.lang.Class<? extends CommandLine.ITypeConverter<?>>[]
converter()
Optionally specify one or moreCommandLine.ITypeConverter
classes to use to convert the command line argument into a strongly typed value (or key-value pair for map fields).Methods in picocli with parameters of type CommandLine.ITypeConverter Modifier and Type Method Description private boolean
CommandLine.Interpreter. canConsumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, java.lang.String argDescription)
private void
CommandLine.Interpreter. consumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, java.util.Map<java.lang.Object,java.lang.Object> result, int index, java.lang.String argDescription)
T
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(java.lang.Class<K> cls, CommandLine.ITypeConverter<K> converter)
Registers the specified type converter for the specified class.private java.lang.Object
CommandLine.Interpreter. tryConvert(CommandLine.Model.ArgSpec argSpec, int index, CommandLine.ITypeConverter<?> converter, java.lang.String value, int typeIndex)
-
Uses of CommandLine.ITypeConverter in picocli.codegen.annotation.processing
Classes in picocli.codegen.annotation.processing that implement CommandLine.ITypeConverter Modifier and Type Class Description (package private) class
TypeConverterMetaData
Implementation of theCommandLine.ITypeConverter
interface that provides metadata on the@Command(typeConverter = xxx.class)
annotation.
-