Top Description Methods
org.junit.platform.launcher.tagexpression

public Interface ParseResult

Annotations
@API
status:INTERNAL
since:1.1
Static Imports
org.apiguardian.api.API.Status.INTERNAL

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.

Since
1.1
See Also
TagExpression#parseFrom(String)

Method Summary

Modifier and TypeMethod and Description
public default Optional<String>
errorMessage()

Return the contained parse error message, if any.

public default Optional<TagExpression>
tagExpression()

Return the contained TagExpression, if any.

public default TagExpression
tagExpressionOrThrow(Function<String, RuntimeException>
will be called with the error message in case this parse result contains a parse error; never null.
exceptionCreator
)

Return the parsed TagExpression or throw an exception with the contained parse error.

Method Detail

errorMessageback to summary
public default Optional<String> errorMessage()

Return the contained parse error message, if any.

tagExpressionback to summary
public default Optional<TagExpression> tagExpression()

Return the contained TagExpression, if any.

tagExpressionOrThrowback to summary
public default TagExpression tagExpressionOrThrow(Function<String, RuntimeException> exceptionCreator)

Return the parsed TagExpression or throw an exception with the contained parse error.

Parameters
exceptionCreator:Function<String, RuntimeException>

will be called with the error message in case this parse result contains a parse error; never null.