public class SimplePackageFilter extends BasePackageFilter
A utility for matching simple package patterns to package names.
apply(String)
returns true iff an input is matched by at least one filter.
filters
Constructor and Description |
---|
SimplePackageFilter(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 SimplePackageFilter(Collection<String> filters)
filters
- A collection of fully qualified class names or package patterns
(package names with subpackage globbing i.e. org.jboss.errai.* or
org.jboss.errai*).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.