- java.lang.Object
-
- net.morimekta.terminal.args.parser.DirParser
-
- All Implemented Interfaces:
ValueParser<Path>
public class DirParser extends Object implements ValueParser<Path>
A converter to file instances, with validator & error message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.morimekta.terminal.args.ValueParser
ValueParser.TypedPutter<T>
-
-
Constructor Summary
Constructors Constructor Description DirParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
parse(String s)
Parse the value into a typed instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.morimekta.terminal.args.ValueParser
andApply, andPut, andPutAs
-
-
-
-
Method Detail
-
parse
public Path parse(String s)
Description copied from interface:ValueParser
Parse the value into a typed instance.- Specified by:
parse
in interfaceValueParser<Path>
- Parameters:
s
- The string value.- Returns:
- The typed instance.
-
-