Class ParseResult<T>
java.lang.Object
software.amazon.awssdk.codegen.jmespath.parser.ParseResult<T>
The result of a
Parser.parse(int, int)
call. This is either successful (success(T)
) or an error
(error()
).-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ParseResult
<T> error()
Create an error result.boolean
Returns true if the parse result was successful.<U> ParseResult
<U> Convert the value in this parse result (if successful) using the provided function.result()
Returns the result of parsing.static <T> ParseResult
<T> success
(T result) Create a successful result with the provided value.
-
Method Details
-
success
Create a successful result with the provided value. -
error
Create an error result. -
mapResult
Convert the value in this parse result (if successful) using the provided function. -
hasResult
public boolean hasResult()Returns true if the parse result was successful. -
result
Returns the result of parsing.
-