addInclude method

Matcher addInclude(
  1. String pattern
)

Adds a glob pattern to include files in the search results.

Patterns can include:

  • Exact paths: "file.txt" or "dir/file.txt"
  • Wildcards: "*.txt" matches all .txt files
  • Deep matching: "**/*.cs" matches .cs files in any subdirectory

Implementation

Matcher addInclude(String pattern) {
  _includePatterns.add(pattern);
  return this;
}