class CliFieldParser
source · line 4public
public class CliFieldParser<T> public constructor(
private val fieldShape: CliValueShape, private val convert: (CliFieldValues) -> T
) : CliValueParser<T>
- Supertype
CliValueParser<T>
A field parser with an explicit token shape and conversion function.
constructor constructor
source · line 4public
constructor(private val fieldShape: CliValueShape, private val convert: (CliFieldValues) -> T)
parameter fieldShape
source · line 5public
private val fieldShape: CliValueShape
parameter convert
source · line 5public
private val convert: (CliFieldValues) -> T
function shape
source · line 7public
public override fun shape(): CliValueShape
- Overrides
shape· CliValueParser
function parseValue
source · line 8public
public override fun parseValue(values: CliFieldValues): T
- Overrides
parseValue· CliValueParser
parameter values
source · line 8public
values: CliFieldValues
type parameter T
source · line 4public
T