Package aQute.libg.glob
Class PathSet
java.lang.Object
aQute.libg.glob.PathSet
A reusable path set using Ant-style include and exclude globs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPatterns
(Stream<String> globs, List<Pattern> patterns) Add Ant-style globs to the exclude patterns.Add Ant-style globs to the exclude patterns.find()
Return a predicate finding the configured include and exclude Ant-style glob expressions.Return a predicate finding the configured include and exclude Ant-style glob expressions.Return a predicate finding the configured include and exclude Ant-style glob expressions.Add Ant-style globs to the include patterns.Add Ant-style globs to the include patterns.matches()
Return a predicate matching the configured include and exclude Ant-style glob expressions.Return a predicate matching the configured include and exclude Ant-style glob expressions.Return a predicate matching the configured include and exclude Ant-style glob expressions.paths
(Collection<String> paths) Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.paths
(Collection<String> paths, String... defaultIncludes) Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.paths
(Collection<String> paths, Predicate<String> matches) paths
(Collection<String> paths, List<String> defaultIncludes) Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.toString()
-
Field Details
-
includes
-
excludes
-
-
Constructor Details
-
PathSet
public PathSet()Create a path set. -
PathSet
Create a path set with initial Ant-style globs for the include patterns.- Parameters:
includes
- Add Ant-style globs.
-
-
Method Details
-
includes
Add Ant-style globs to the include patterns.- Parameters:
includes
- Add Ant-style globs.- Returns:
- This PathSet.
-
include
Add Ant-style globs to the include patterns.- Parameters:
includes
- Add Ant-style globs.- Returns:
- This PathSet.
-
exclude
Add Ant-style globs to the exclude patterns.- Parameters:
excludes
- Add Ant-style globs.- Returns:
- This PathSet.
-
excludes
Add Ant-style globs to the exclude patterns.- Parameters:
excludes
- Add Ant-style globs.- Returns:
- This PathSet.
-
addPatterns
-
paths
Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes
- The default include patterns to use if no include patterns were configured.- Returns:
- A list of paths in the specified collection which match the include and exclude Ant-style globs.
-
paths
Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes
- The default include patterns to use if no include patterns were configured.- Returns:
- A list of paths in the specified collection which match the include and exclude Ant-style globs.
-
paths
Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.- Returns:
- A list of paths in the specified collection which match the include and exclude Ant-style globs.
-
paths
-
matches
Return a predicate matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes
- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which matches the include and exclude Ant-style globs.
-
matches
Return a predicate matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes
- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which matches the include and exclude Ant-style globs.
-
matches
Return a predicate matching the configured include and exclude Ant-style glob expressions.- Returns:
- A predicate which matches the include and exclude Ant-style globs.
-
find
Return a predicate finding the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes
- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which finds the include and exclude Ant-style globs.
-
find
Return a predicate finding the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes
- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which finds the include and exclude Ant-style globs.
-
find
Return a predicate finding the configured include and exclude Ant-style glob expressions.- Returns:
- A predicate which find the include and exclude Ant-style globs.
-
matcher
-
matcher
-
matcher
-
matcher
-
toString
-