Package editor.search
Class UsageSearcher
java.lang.Object
editor.search.AbstractSearcher
editor.search.UsageSearcher
- Direct Known Subclasses:
IncrementalCompilerUsageSearcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate SearchTreeprivate final booleanprivate final UsageTarget -
Constructor Summary
ConstructorsConstructorDescriptionUsageSearcher(UsageTarget target, boolean searchText, boolean includeMemberUsage) -
Method Summary
Modifier and TypeMethodDescriptionprivate List<SearchLocation>addSearchLocation(IParsedElement elem, List<SearchLocation> locations) private List<SearchLocation>addSearchLocation(IToken token, List<SearchLocation> locations) private List<SearchLocation>addZeroLengthSearchLocation(IParsedElement elem, List<SearchLocation> locations) private voidprivate booleanprivate List<SearchLocation>findLocations(SearchTree tree, List<SearchLocation> locations) private ITokenfindNameToken(String name, IParsedElement pe) private List<SearchLocation>private List<SearchLocation>findUsage(IParsedElement pe, LocalVarFeatureInfo findLocal, List<SearchLocation> locations) private List<SearchLocation>findUsage(IParsedElement pe, IConstructorInfo findCi, List<SearchLocation> locations) private List<SearchLocation>findUsage(IParsedElement pe, IMethodInfo findMi, List<SearchLocation> locations) private List<SearchLocation>findUsage(IParsedElement pe, IPropertyInfo findPi, List<SearchLocation> locations) private List<SearchLocation>findUsage(IParsedElement pe, IType type, List<SearchLocation> locations) (package private) List<SearchLocation>findUsage(IGosuClass gsClass) private ITypegetOuterMostEnclosingType(IType innerClass) private List<SearchLocation>getSearchLocations(IParsedElement pe, IType type, List<SearchLocation> locations, IFeatureInfo pi) voidheadlessSearch(FileTree tree) (package private) booleanprivate SearchLocationmakeSearchLocation(SearchElement target) static SearchLocationmakeSearchLocation(IParseTree parseTree) private SearchLocationmakeSearchLocation(IToken token) private SearchLocationmakeZeroLengthSearchLocation(IParseTree parseTree) private booleanmaybeSearchForText(FileTree tree, SearchTree results) private booleanpropertyInfosEqual(IPropertyInfo pi, IPropertyInfo findPi) private booleanreferencesType(IType ref, IType type) voidbooleansearch(FileTree tree, SearchTree results) private voidselectFirstMatch(SearchTree results) Methods inherited from class editor.search.AbstractSearcher
getOrMakePath, isExcluded, searchTree, searchTrees
-
Field Details
-
_target
-
_searchText
private final boolean _searchText -
_includeMemberUsage
private boolean _includeMemberUsage -
_results
-
-
Constructor Details
-
UsageSearcher
-
-
Method Details
-
includeMemberUsage
boolean includeMemberUsage() -
search
- Specified by:
searchin classAbstractSearcher
-
findUsage
-
findUsage
-
findUsage
private List<SearchLocation> findUsage(IParsedElement pe, IConstructorInfo findCi, List<SearchLocation> locations) -
findUsage
private List<SearchLocation> findUsage(IParsedElement pe, IMethodInfo findMi, List<SearchLocation> locations) -
findUsage
private List<SearchLocation> findUsage(IParsedElement pe, IPropertyInfo findPi, List<SearchLocation> locations) -
propertyInfosEqual
-
findNameToken
-
findUsage
private List<SearchLocation> findUsage(IParsedElement pe, LocalVarFeatureInfo findLocal, List<SearchLocation> locations) -
findUsage
private List<SearchLocation> findUsage(IParsedElement pe, IType type, List<SearchLocation> locations) -
getSearchLocations
private List<SearchLocation> getSearchLocations(IParsedElement pe, IType type, List<SearchLocation> locations, IFeatureInfo pi) -
referencesType
-
encloses
-
addZeroLengthSearchLocation
private List<SearchLocation> addZeroLengthSearchLocation(IParsedElement elem, List<SearchLocation> locations) -
addSearchLocation
-
addSearchLocation
-
makeZeroLengthSearchLocation
-
makeSearchLocation
-
makeSearchLocation
-
makeSearchLocation
-
maybeSearchForText
-
search
-
headlessSearch
-
doSearch
-
searchLocal
-
getOuterMostEnclosingType
-
findLocations
-
selectFirstMatch
-