mk.fsgrep.match
Class TextSearch
java.lang.Object
mk.fsgrep.match.FileSearch
mk.fsgrep.match.TextSearch
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- CodeSearch
public class TextSearch
- extends FileSearch
- Author:
- Murali Krishnan
Methods inherited from class mk.fsgrep.match.FileSearch |
getCount, getFile, getLinesSearched, getModel, getOrCreateResults, getRE, getResults, incrementCount, incrementLinesSearched, initialize, run, setResults |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RE_BLANK_LINE
public static final java.util.regex.Pattern RE_BLANK_LINE
TextSearch
public TextSearch()
shouldStopAfterFirstMatch
public boolean shouldStopAfterFirstMatch()
shouldContinueReading
protected boolean shouldContinueReading()
setStopAfterFirstMatch
public void setStopAfterFirstMatch(boolean val)
setContinueReading
protected void setContinueReading(boolean val)
search
public void search()
- Specified by:
search
in class FileSearch
process
protected void process(int linenum,
java.lang.String line)
handleMatch
protected void handleMatch(int linenum,
java.lang.String line)
stopAfterFirstMatch
public void stopAfterFirstMatch()
- Overrides:
stopAfterFirstMatch
in class FileSearch
Copyright © 2009. All Rights Reserved.