@API(status=INTERNAL, since="1.1") public interface ParseResult
The result of attempting to parse a TagExpression.

An instance of this type either contains a successfully parsed TagExpression or an error message describing the parse error.

See Also:
  • Method Details

    • tagExpressionOrThrow

      default TagExpression tagExpressionOrThrow(Function<String,​RuntimeException> exceptionCreator)
      Return the parsed 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.
    • errorMessage

      default Optional<String> errorMessage()
      Return the contained parse error message, if any.
    • tagExpression

      default Optional<TagExpression> tagExpression()
      Return the contained TagExpression, if any.