org.jacoco.core.runtime
Class WildcardMatcher

java.lang.Object
  extended by org.jacoco.core.runtime.WildcardMatcher

public class WildcardMatcher
extends Object

Matches strings against ?/* wildcard expressions. Multiple expressions can be separated with a vertical bar (|). In this case the expression matches if at least one part matches.

Version:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Constructor Summary
WildcardMatcher(String expression)
          Creates a new matcher with the given expression.
 
Method Summary
 boolean matches(String s)
          Matches the given string against the expressions of this matcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardMatcher

public WildcardMatcher(String expression)
Creates a new matcher with the given expression.

Parameters:
expression - wildcard expressions
Method Detail

matches

public boolean matches(String s)
Matches the given string against the expressions of this matcher.

Parameters:
s - string to test
Returns:
true, if the expression matches