Package io.permazen.cli.parse
Interface Parser<T>
- Type Parameters:
T
- parsed value type
- All Known Implementing Classes:
AbstractKVCommand.BytesParser
,EncodingParser
,EnumNameParser
,ObjIdParser
,WhateverParser
,WordParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Generic parsing interface.
-
Method Summary
-
Method Details
-
parse
Parse value from the given text.- Parameters:
session
- CLI sessiontext
- input to parse- Returns:
- parsed value
- Throws:
IllegalArgumentException
- if parse failsIllegalArgumentException
- if either parameter is null
-