Class ReflectArgumentType<T>

java.lang.Object
net.sourceforge.argparse4j.impl.type.ReflectArgumentType<T>
All Implemented Interfaces:
ArgumentType<T>, MetavarInference

public class ReflectArgumentType<T> extends Object implements ArgumentType<T>, MetavarInference

This implementation converts String value into given type using type's valueOf(java.lang.String) static method or its constructor. This class implements MetavarInference interface, and performs special handling when Boolean class is passed to the constructor. In that case, inferMetavar() returns convenient metavar string for Boolean values, and it is used when Argument.metavar(String...) is not used.