Allows filtering on meta info.
A filter is uniquely identified by its String representation which is parsed and matched by the {@link MetaMatcher} to determine if the {@link Meta} isallowed or not.
The {@link DefaultMetaMatcher} interprets the filter as a sequence of anyname-value properties (separated by a space), prefixed by "+" for inclusion and "-" for exclusion. E.g.:
MetaFilter filter = new MetaFilter("+author Mauro -theme smoke testing +map *API -skip"); filter.allow(new Meta(asList("map someAPI")));
The use of the {@link GroovyMetaMatcher} is triggered by the prefix "groovy:" and allows the filter to be interpreted as a Groovy expression.
MetaFilter filter = new MetaFilter("groovy: (a == '11' | a == '22') && b == '33'");
|
|
|
|