@API(status=INTERNAL,
since="1.1")
public interface ParseResult
TagExpression
.
An instance of this type either contains a successfully parsed
TagExpression
or an error message describing the parse
error.
TagExpression.parseFrom(String)
Modifier and Type | Method and Description |
---|---|
default Optional<String> |
errorMessage()
Return the contained parse error message, if any.
|
default Optional<TagExpression> |
tagExpression()
Return the contained
TagExpression , if any. |
default TagExpression |
tagExpressionOrThrow(Function<String,RuntimeException> exceptionCreator)
Return the parsed
TagExpression or throw an exception with the
contained parse error. |
default TagExpression tagExpressionOrThrow(Function<String,RuntimeException> exceptionCreator)
TagExpression
or throw an exception with the
contained parse error.exceptionCreator
- will be called with the error message in case
this parse result contains a parse error; never null
.default Optional<String> errorMessage()
default Optional<TagExpression> tagExpression()
TagExpression
, if any.Copyright © 2024. All rights reserved.