Package org.jacoco.core.runtime
Class WildcardMatcher
java.lang.Object
org.jacoco.core.runtime.WildcardMatcher
Matches strings against glob like wildcard expressions where
?
matches any single character and *
matches any number of any
character. Multiple expressions can be separated with a colon (:). In this
case the expression matches if at least one part matches.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWildcardMatcher
(String expression) Creates a new matcher with the given expression. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Matches the given string against the expressions of this matcher.private static CharSequence
-
Field Details
-
pattern
-
-
Constructor Details
-
WildcardMatcher
Creates a new matcher with the given expression.- Parameters:
expression
- wildcard expressions
-
-
Method Details
-
toRegex
-
matches
Matches the given string against the expressions of this matcher.- Parameters:
s
- string to test- Returns:
true
, if the expression matches
-