public class PatternQuerySpecification extends QuerySpecification
Describes a search query by giving a textual pattern to search for.
This class is not intended to be instantiated or subclassed by clients.
| Constructor and Description |
|---|
PatternQuerySpecification(java.lang.String pattern,
int searchFor,
boolean caseSensitive,
int limitTo,
IJavaScriptSearchScope scope,
java.lang.String scopeDescription) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPattern()
Returns the search pattern the query should search for.
|
int |
getSearchFor()
Returns what kind of
IJavaScriptElement the query should search for. |
boolean |
isCaseSensitive()
Whether the query should be case sensitive.
|
getLimitTo, getScope, getScopeDescriptionpublic PatternQuerySpecification(java.lang.String pattern,
int searchFor,
boolean caseSensitive,
int limitTo,
IJavaScriptSearchScope scope,
java.lang.String scopeDescription)
pattern - The string that the query should search for.searchFor - What kind of IJavaScriptElement the query should search for.caseSensitive - Whether the query should be case sensitive.limitTo - The kind of occurrence the query should search for.scope - The scope to search in.scopeDescription - A human readable description of the search scope.SearchPattern.createPattern(java.lang.String, int, int, int)public boolean isCaseSensitive()
public java.lang.String getPattern()
SearchPattern.createPattern(java.lang.String, int, int, int)public int getSearchFor()
IJavaScriptElement the query should search for.IJavaScriptElement to search for.IJavaScriptSearchConstantsCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.