public class SimplePackageFilePathPredicate extends BasePackageFilter
A utility for matching package patterns to file paths.
apply(String)
returns false iff an input is matched by at least one filter.
filters
Constructor and Description |
---|
SimplePackageFilePathPredicate(Collection<String> filters) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(String input) |
protected Collection<String> |
processFilters(Collection<String> filters)
In
BasePackageFilter.apply(String) , filters ending with '*' are compared to inputs with String.startsWith(String)
and other patterns are matched with String.equals(Object) . |
matches
public SimplePackageFilePathPredicate(Collection<String> filters)
protected Collection<String> processFilters(Collection<String> filters)
BasePackageFilter
BasePackageFilter.apply(String)
, filters ending with '*' are compared to inputs with String.startsWith(String)
and other patterns are matched with String.equals(Object)
. This method gives subclasses a chance to modify
filters before any matching is done (for example to convert java packages to paths).processFilters
in class BasePackageFilter
public boolean apply(String input)
apply
in interface com.google.common.base.Predicate<String>
apply
in class BasePackageFilter
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.