# Uses of Class
org.eclipse.jdt.core.search.SearchPattern

Packages that use SearchPattern
Package
Description
org.eclipse.jdt.core.search
Provides support for searching the workspace Java elements that match a particular description.

## Uses of SearchPattern in org.eclipse.jdt.core.search

Methods in org.eclipse.jdt.core.search that return SearchPattern
Modifier and Type
Method
Description
`SearchPattern`
SearchPattern.`clone()`
`static SearchPattern`
SearchPattern.`createAndPattern(SearchPattern leftPattern, SearchPattern rightPattern)`
Deprecated.
Unfortunately, this functionality is not fully supported yet (see "https://bugs.eclipse.org/bugs/show_bug.cgi?
`static SearchPattern`
SearchPattern.`createOrPattern(SearchPattern leftPattern, SearchPattern rightPattern)`
Returns a search pattern that combines the given two patterns into an "or" pattern.
`static SearchPattern`
SearchPattern.`createPattern(String stringPattern, int searchFor, int limitTo, int matchRule)`
Returns a search pattern based on a given string pattern.
`static SearchPattern`
SearchPattern.`createPattern(IJavaElement element, int limitTo)`
Returns a search pattern based on a given Java element.
`static SearchPattern`
SearchPattern.`createPattern(IJavaElement element, int limitTo, int matchRule)`
Returns a search pattern based on a given Java element.
`SearchPattern`
SearchPattern.`currentPattern()`
`abstract SearchPattern`
SearchPattern.`getBlankPattern()`
Returns a blank pattern that can be used as a record to decode an index key.
Methods in org.eclipse.jdt.core.search with parameters of type SearchPattern
Modifier and Type
Method
Description
`void`
SearchPattern.`acceptMatch(String relativePath, String containerPath, char separator, SearchPattern pattern, org.eclipse.jdt.internal.core.search.IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope)`
`void`
SearchPattern.`acceptMatch(String relativePath, String containerPath, char separator, SearchPattern pattern, org.eclipse.jdt.internal.core.search.IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor monitor)`
`static SearchPattern`
SearchPattern.`createAndPattern(SearchPattern leftPattern, SearchPattern rightPattern)`
Deprecated.
Unfortunately, this functionality is not fully supported yet (see "https://bugs.eclipse.org/bugs/show_bug.cgi?
`static SearchPattern`
SearchPattern.`createOrPattern(SearchPattern leftPattern, SearchPattern rightPattern)`
Returns a search pattern that combines the given two patterns into an "or" pattern.
`abstract void`
SearchParticipant.`locateMatches(SearchDocument[] documents, SearchPattern pattern, IJavaSearchScope scope, SearchRequestor requestor, IProgressMonitor monitor)`
Locates the matches in the given documents using the given search pattern and search scope, and reports them to the given search requestor.
`boolean`
SearchPattern.`matchesDecodedKey(SearchPattern decodedPattern)`
Returns whether this pattern matches the given pattern (representing a decoded index key).
`void`
SearchEngine.`search(SearchPattern pattern, SearchParticipant[] participants, IJavaSearchScope scope, SearchRequestor requestor, IProgressMonitor monitor)`
Searches for matches of a given search pattern.
`abstract IPath[]`
SearchParticipant.`selectIndexes(SearchPattern query, IJavaSearchScope scope)`
Returns the collection of index locations to consider when performing the given search query in the given scope.