|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.adobe.flexbuilder.codemodel.search.SearchFilter
A SearchFiler is used to help determine what type of results should be returned back from searches
made into the an ISearchIndex
A SearchFilter can specific what to return: references, declarations, textual matches of any combination of the three,
as well as determine the number of occurrences to return in a given query
| Field Summary | |
static SearchFilter |
ALL_OCCURRENCES
Creates a SearchFilter that will return both references and declarations in the given query |
static SearchFilter |
ALL_OCCURRENCES_AND_TEXT
Creates a SearchFilter that will return references, declarations and texual matches in the given query |
static SearchFilter |
DECLARATIONS_FILTER
Creates a SearchFilter that will only return declarations in the given query |
static SearchFilter |
REFERENCES_FILTER
Creates a SearchFilter that will only return references in the given query |
static SearchFilter |
TEXTUAL_MATCHES
Creates a SearchFilter that will only return textual matches in the given query |
| Constructor Summary | |
SearchFilter(boolean references,
boolean declarations,
boolean textualMatches)
Creates a new SearchFilter |
|
| Method Summary | |
boolean |
getFindDeclarations()
|
boolean |
getFindReferences()
|
boolean |
getFindTextualMatches()
|
int |
getOccurrencesLimit()
|
boolean |
hasOccurrencesLimit()
|
void |
setOccurrenceLimit(int limit)
Sets the current limit of how many occurrences we should return for a specific search query |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final SearchFilter REFERENCES_FILTER
public static final SearchFilter DECLARATIONS_FILTER
public static final SearchFilter TEXTUAL_MATCHES
public static final SearchFilter ALL_OCCURRENCES
public static final SearchFilter ALL_OCCURRENCES_AND_TEXT
| Constructor Detail |
public SearchFilter(boolean references,
boolean declarations,
boolean textualMatches)
references - true if we want to find referencesdeclarations - true if we want to find declarationstextualMatches - true if we want to find textual matches| Method Detail |
public boolean getFindReferences()
public boolean getFindDeclarations()
public boolean getFindTextualMatches()
public void setOccurrenceLimit(int limit)
limit - the upper bound of results we should returnpublic int getOccurrencesLimit()
public boolean hasOccurrencesLimit()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||