Takes a NormalizerTransformationRule, builds java.util.regex.Pattern instances from the *Pattern fields
in NormalizerTransformationRule used to do the actual regex pattern matching (if the exact string
matching fails).
Matching on a specific field (license name, license URL, license file content, module name) is only
performed, when the pattern is not null and not empty.
This class is only used during the actual filtering process but not kept around in the model.
| Type | Name and description |
|---|---|
LicenseBundleNormalizer.NormalizerTransformationRule |
rule |
| Constructor and description |
|---|
LicenseBundleNormalizer.NormalizerTransformationRuleMatcher
(LicenseBundleNormalizer.NormalizerTransformationRule rule) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
licenseFileContentMatches(groovy.lang.Closure<java.lang.String> contentClosure) |
|
boolean |
licenseNameMatches(java.lang.String name) |
|
boolean |
licenseUrlMatches(java.lang.String url) |
|
boolean |
moduleMatches(java.lang.String module) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation