Package org.eclipse.aether.util.filter
Class DependencyFilterUtils
java.lang.Object
org.eclipse.aether.util.filter.DependencyFilterUtils
A utility class assisting in the creation of dependency node filters.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyFilter
andFilter
(Collection<DependencyFilter> filters) Creates a new filter that combines the specified filters using a logicalAND
.static DependencyFilter
andFilter
(DependencyFilter... filters) Creates a new filter that combines the specified filters using a logicalAND
.static DependencyFilter
classpathFilter
(String... classpathTypes) Deprecated.Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics.static DependencyFilter
classpathFilter
(Collection<String> classpathTypes) Deprecated.Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics.static DependencyFilter
notFilter
(DependencyFilter filter) Creates a new filter that negates the specified filter.static DependencyFilter
orFilter
(Collection<DependencyFilter> filters) Creates a new filter that combines the specified filters using a logicalOR
.static DependencyFilter
orFilter
(DependencyFilter... filters) Creates a new filter that combines the specified filters using a logicalOR
.
-
Method Details
-
notFilter
Creates a new filter that negates the specified filter.- Parameters:
filter
- The filter to negate, must not benull
.- Returns:
- The new filter, never
null
.
-
andFilter
Creates a new filter that combines the specified filters using a logicalAND
. If no filters are specified, the resulting filter accepts everything.- Parameters:
filters
- The filters to combine, may benull
.- Returns:
- The new filter, never
null
.
-
andFilter
Creates a new filter that combines the specified filters using a logicalAND
. If no filters are specified, the resulting filter accepts everything.- Parameters:
filters
- The filters to combine, may benull
.- Returns:
- The new filter, never
null
.
-
orFilter
Creates a new filter that combines the specified filters using a logicalOR
. If no filters are specified, the resulting filter accepts nothing.- Parameters:
filters
- The filters to combine, may benull
.- Returns:
- The new filter, never
null
.
-
orFilter
Creates a new filter that combines the specified filters using a logicalOR
. If no filters are specified, the resulting filter accepts nothing.- Parameters:
filters
- The filters to combine, may benull
.- Returns:
- The new filter, never
null
.
-
classpathFilter
Deprecated.Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics. Moreover, Resolver is oblivious about notions of "classpath", "modulepath", and any other similar uses. These should be handled by consumer project.Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types. A classpath type is a set of scopes separated by either','
or'+'
.- Parameters:
classpathTypes
- The classpath types, may benull
or empty to match no dependency.- Returns:
- The new filter, never
null
. - See Also:
-
classpathFilter
Deprecated.Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics. Moreover, Resolver is oblivious about notions of "classpath", "modulepath", and any other similar uses. These should be handled by consumer project.Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types. A classpath type is a set of scopes separated by either','
or'+'
.- Parameters:
classpathTypes
- The classpath types, may benull
or empty to match no dependency.- Returns:
- The new filter, never
null
. - See Also:
-