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

public Interface TagExpression

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

A tag expression can be evaluated against a collection of tags to determine if they match the expression.
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true, if the tags match this tag expression; false, otherwise
evaluate
(Collection<TestTag>
the tags this tag expression is to be evaluated against
tags
)

Evaluate this tag expression against the supplied collection of tags.

public static ParseResult
parseFrom(@Nullable String
the tag expression string to parse; may be null.
infixTagExpression
)

Attempt to parse a TagExpression from the supplied tag expression string.

Method Detail

evaluateback to summary
public boolean evaluate(Collection<TestTag> tags)

Evaluate this tag expression against the supplied collection of tags.

Parameters
tags:Collection<TestTag>

the tags this tag expression is to be evaluated against

Returns:boolean

true, if the tags match this tag expression; false, otherwise

parseFromback to summary
public static ParseResult parseFrom(@Nullable String infixTagExpression)

Attempt to parse a TagExpression from the supplied tag expression string.

Parameters
infixTagExpression:@Nullable String

the tag expression string to parse; may be null.

Annotations
@API
status:INTERNAL
since:1.1
See Also
ParseResult