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.
QuerySpecification
Constructor and Description |
---|
PatternQuerySpecification(String pattern,
int searchFor,
boolean caseSensitive,
int limitTo,
IJavaSearchScope scope,
String scopeDescription) |
Modifier and Type | Method and Description |
---|---|
String |
getPattern()
Returns the search pattern the query should search for.
|
int |
getSearchFor()
Returns what kind of
IJavaElement the query should search for. |
boolean |
isCaseSensitive()
Whether the query should be case sensitive.
|
getLimitTo, getScope, getScopeDescription
public PatternQuerySpecification(String pattern, int searchFor, boolean caseSensitive, int limitTo, IJavaSearchScope scope, String scopeDescription)
pattern
- The string that the query should search for.searchFor
- What kind of IJavaElement
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 String getPattern()
SearchPattern.createPattern(java.lang.String, int, int, int)
public int getSearchFor()
IJavaElement
the query should search for.IJavaElement
to search for.IJavaSearchConstants
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.