public interface PackagePattern extends Comparable<PackagePattern>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStatic()
Whether this is a pattern starting with 'static '.
|
boolean |
matches(PackagePattern packagePattern)
Tests whether the given package pattern is matched by this package pattern
instance.
|
boolean |
matches(String packageName)
Tests whether the given package name is matched by this package pattern instance.
|
static PackagePattern |
parse(String patternString)
Parses the given String into a
PackagePattern. |
static List<PackagePattern> |
parseAll(Collection<String> patternStrings)
Parses each string of the given collection into a
PackagePattern and
returns them in a list. |
compareTostatic List<PackagePattern> parseAll(Collection<String> patternStrings)
PackagePattern and
returns them in a list.patternStrings - The Strings to parse.static PackagePattern parse(String patternString)
PackagePattern.patternString - The String to parse.boolean matches(String packageName)
packageName - The package name to match against this pattern.boolean matches(PackagePattern packagePattern)
packagePattern - The package pattern to match against this pattern.boolean isStatic()
Copyright © 2014–2019. All rights reserved.