StringParserImplWithOptions
internal class StringParserImplWithOptions<T>(val type: KType, val name: String? = null, val getParserForConverter: (ParserOptions?) -> ParserFunction<T>, val getParser: (ParserOptions?, List<KType>) -> ParserFunction<T>) : StringParser<T>
Constructors
Link copied to clipboard
constructor(type: KType, name: String? = null, getParserForConverter: (ParserOptions?) -> ParserFunction<T>, getParser: (ParserOptions?, List<KType>) -> ParserFunction<T>)
Functions
Link copied to clipboard
open override fun applyOptions(options: ParserOptions?, attemptedParsers: List<KType> = emptyList()): ParserFunction<T>
Applies ParserOptions and optionally supplied previously attemptedParsers to get the actual string parser function that can parse String to T (or null if unsuccessful).
Link copied to clipboard
Applies ParserOptions to get a ParserFunction that can be run in case this StringParser is turned into a converter (like at Parsers.getAsConverterOrNull).