Package editor.search
Class UsageSearcher
java.lang.Object
editor.search.AbstractSearcher
editor.search.UsageSearcher
- Direct Known Subclasses:
IncrementalCompilerUsageSearcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private SearchTree
private final boolean
private 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 void
private boolean
private List<SearchLocation>
findLocations
(SearchTree tree, List<SearchLocation> locations) private IToken
findNameToken
(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 IType
getOuterMostEnclosingType
(IType innerClass) private List<SearchLocation>
getSearchLocations
(IParsedElement pe, IType type, List<SearchLocation> locations, IFeatureInfo pi) void
headlessSearch
(FileTree tree) (package private) boolean
private SearchLocation
makeSearchLocation
(SearchElement target) static SearchLocation
makeSearchLocation
(IParseTree parseTree) private SearchLocation
makeSearchLocation
(IToken token) private SearchLocation
makeZeroLengthSearchLocation
(IParseTree parseTree) private boolean
maybeSearchForText
(FileTree tree, SearchTree results) private boolean
propertyInfosEqual
(IPropertyInfo pi, IPropertyInfo findPi) private boolean
referencesType
(IType ref, IType type) void
boolean
search
(FileTree tree, SearchTree results) private void
selectFirstMatch
(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:
search
in 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
-