Package | Description |
---|---|
software.amazon.awssdk.codegen.jmespath.parser.util |
Modifier and Type | Class and Description |
---|---|
class |
CompositeParser<T>
A
Parser that invokes a list of converters, returning the first converter that was successful. |
Modifier and Type | Method and Description |
---|---|
static <T> CompositeParser<T> |
CompositeParser.firstTry(Parser<T> parser)
Create a
CompositeParser that tries the provided parser first. |
static <T,U> CompositeParser<U> |
CompositeParser.firstTry(Parser<T> parser,
Function<T,U> resultConverter)
Create a
CompositeParser that tries the provided parser first, converting the result of that parser using the
provided function. |
<S> CompositeParser<T> |
CompositeParser.thenTry(Parser<S> nextParser,
Function<S,T> resultConverter)
Create a new
CompositeParser that tries the provided parser after all previous parsers, converting the result of
that parser using the provided function. |
CompositeParser<T> |
CompositeParser.thenTry(Parser<T> nextParser)
Create a new
CompositeParser that tries the provided parser after all previous parsers. |
Copyright © 2022. All rights reserved.