public abstract static class TextSearchQueryProvider.TextSearchInput extends Object
Clients may instantiate this class.
Constructor and Description |
---|
TextSearchInput() |
Modifier and Type | Method and Description |
---|---|
abstract FileTextSearchScope |
getScope()
Returns the scope for the search
|
abstract String |
getSearchText()
Returns the search text to search for.
|
abstract boolean |
isCaseSensitiveSearch()
Returns whether the search is a case sensitive search or not.
|
abstract boolean |
isRegExSearch()
Returns whether the search text denotes a regular expression or not.
|
boolean |
isWholeWordSearch()
Returns whether to require a word boundary at the beginning and end of the pattern,
excluding matches that only match part of a word.
|
boolean |
searchInBinaries()
Returns whether binary files are searched.
|
public abstract String getSearchText()
isRegExSearch()
the search text represents a regular expression
or a pattern using '*' and '?' as wildcards. The empty search text signals a file name search.public abstract boolean isCaseSensitiveSearch()
public abstract boolean isRegExSearch()
public boolean isWholeWordSearch()
false
, subclasses can override.true
if the pattern should match only whole words. true
is not allowed if isRegExSearch()
returns true
. In this
case, clients can either ignore this option or throw an
IllegalArgumentException
.public boolean searchInBinaries()
false
, subclasses can override.true
if binary files are searchedpublic abstract FileTextSearchScope getScope()
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.