Package picocli
Class CommandLine.BuiltIn.ReflectionConverter
- java.lang.Object
-
- picocli.CommandLine.BuiltIn.ReflectionConverter
-
- All Implemented Interfaces:
CommandLine.ITypeConverter<java.lang.Object>
- Enclosing class:
- CommandLine.BuiltIn
static class CommandLine.BuiltIn.ReflectionConverter extends java.lang.Object implements CommandLine.ITypeConverter<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Method
method
private java.lang.Class<?>[]
paramTypes
-
Constructor Summary
Constructors Constructor Description ReflectionConverter(java.lang.reflect.Method method, java.lang.Class<?>... paramTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convert(java.lang.String s)
Converts the specified command line argument value to some domain object.
-
-
-
Method Detail
-
convert
public java.lang.Object convert(java.lang.String s)
Description copied from interface:CommandLine.ITypeConverter
Converts the specified command line argument value to some domain object.- Specified by:
convert
in interfaceCommandLine.ITypeConverter<java.lang.Object>
- Parameters:
s
- the command line argument String value- Returns:
- the resulting domain object
-
-