public class PackageNameMatcher extends Object
Modifier and Type | Method and Description |
---|---|
static PackageNameMatcher |
compile(List<String> specs)
Compiles the given list of package name specification strings into a matching object.
|
boolean |
matches(String packageName)
Returns true if the given package name matches against any of the patterns in this matcher.
|
String |
toString() |
public static PackageNameMatcher compile(List<String> specs)
If the list is empty, the resulting object will never match any package name, which means
that matches(String)
will always return false
.
specs
- The list of package name specifications. For details on specification syntax see
#compile(String)
.IllegalArgumentException
- Thrown if the given argument is null
or if any of the strings in the
list is an invalid package name specification.public boolean matches(String packageName)
false
if the given package name is null
or an empty
string.Copyright © 2010-2015 Eclipse Foundation. All Rights Reserved.