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 org.eclipse.aether.graph.DependencyFilterandFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters) Creates a new filter that combines the specified filters using a logicalAND.static org.eclipse.aether.graph.DependencyFilterandFilter(org.eclipse.aether.graph.DependencyFilter... filters) Creates a new filter that combines the specified filters using a logicalAND.static org.eclipse.aether.graph.DependencyFilterclasspathFilter(String... classpathTypes) Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types.static org.eclipse.aether.graph.DependencyFilterclasspathFilter(Collection<String> classpathTypes) Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types.static org.eclipse.aether.graph.DependencyFilternotFilter(org.eclipse.aether.graph.DependencyFilter filter) Creates a new filter that negates the specified filter.static org.eclipse.aether.graph.DependencyFilterorFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters) Creates a new filter that combines the specified filters using a logicalOR.static org.eclipse.aether.graph.DependencyFilterorFilter(org.eclipse.aether.graph.DependencyFilter... filters) Creates a new filter that combines the specified filters using a logicalOR.
-
Method Details
-
notFilter
public static org.eclipse.aether.graph.DependencyFilter notFilter(org.eclipse.aether.graph.DependencyFilter filter) 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
public static org.eclipse.aether.graph.DependencyFilter andFilter(org.eclipse.aether.graph.DependencyFilter... filters) 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
public static org.eclipse.aether.graph.DependencyFilter andFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters) 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
public static org.eclipse.aether.graph.DependencyFilter orFilter(org.eclipse.aether.graph.DependencyFilter... filters) 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
public static org.eclipse.aether.graph.DependencyFilter orFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters) 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
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 benullor empty to match no dependency.- Returns:
- The new filter, never
null. - See Also:
-
classpathFilter
public static org.eclipse.aether.graph.DependencyFilter classpathFilter(Collection<String> classpathTypes) 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 benullor empty to match no dependency.- Returns:
- The new filter, never
null. - See Also:
-