public class SearchScopeOptions extends Object
SearchInfo
.
ScopeOptionsController
Modifier and Type | Method and Description |
---|---|
void |
addFilter(SearchFilterDefinition filter)
Add a file object filter.
|
static SearchScopeOptions |
create()
Create instance initialized with default options.
|
static SearchScopeOptions |
create(String pattern,
boolean regexp) |
static SearchScopeOptions |
create(String pattern,
boolean regexp,
boolean searchInArchives,
boolean searchInGenerated,
List<SearchFilterDefinition> filters) |
List<SearchFilterDefinition> |
getFilters()
Get list of custom filters.
|
String |
getPattern() |
boolean |
isRegexp() |
boolean |
isSearchInArchives() |
boolean |
isSearchInGenerated() |
void |
setPattern(String pattern)
Set file name pattern.
|
void |
setRegexp(boolean regexp)
Set whether the pattern should be handled as regular expression.
|
void |
setSearchInArchives(boolean searchInArchives)
Set searching in archives.
|
void |
setSearchInGenerated(boolean searchInGenerated)
Set searching in generated sources.
|
public void addFilter(@NonNull SearchFilterDefinition filter)
@NonNull public List<SearchFilterDefinition> getFilters()
public boolean isSearchInArchives()
public void setSearchInArchives(boolean searchInArchives)
public boolean isSearchInGenerated()
public void setSearchInGenerated(boolean searchInGenerated)
public String getPattern()
public void setPattern(@NullAllowed String pattern)
public boolean isRegexp()
public void setRegexp(boolean regexp)
@NonNull public static SearchScopeOptions create()
@NonNull public static SearchScopeOptions create(@NullAllowed String pattern, boolean regexp)
pattern
- File name pattern.regexp
- Regular expression mode.@NonNull public static SearchScopeOptions create(@NullAllowed String pattern, boolean regexp, boolean searchInArchives, boolean searchInGenerated, @NullAllowed List<SearchFilterDefinition> filters)
pattern
- File name pattern.regexp
- File name pattern specified as regular expression.searchInArchives
- Enable searching in archives.searchInGenerated
- Enable searching in generated sources.filters
- List of file object filters. Can be null.