Package editor.search
Class TextSearcher
- java.lang.Object
-
- editor.search.AbstractSearcher
-
- editor.search.TextSearcher
-
public class TextSearcher extends AbstractSearcher
-
-
Field Summary
Fields Modifier and Type Field Description private boolean_caseSensitiveprivate java.lang.String_patternprivate boolean_regExprivate boolean_wholeWords
-
Constructor Summary
Constructors Constructor Description TextSearcher(java.lang.String pattern, boolean caseSensitive, boolean wholeWords, boolean regEx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<SearchLocation>findLocations(SearchTree tree, java.util.List<SearchLocation> locations)private booleanisTextFile(FileTree ft)booleansearch(FileTree tree, SearchTree results)java.util.List<SearchLocation>searchLocal()-
Methods inherited from class editor.search.AbstractSearcher
getOrMakePath, isExcluded, searchTree, searchTrees
-
-
-
-
Method Detail
-
search
public boolean search(FileTree tree, SearchTree results)
- Specified by:
searchin classAbstractSearcher
-
searchLocal
public java.util.List<SearchLocation> searchLocal()
-
isTextFile
private boolean isTextFile(FileTree ft)
-
findLocations
private java.util.List<SearchLocation> findLocations(SearchTree tree, java.util.List<SearchLocation> locations)
-
-