mk.fsgrep.match
Class TextSearch

java.lang.Object
  extended by mk.fsgrep.match.FileSearch
      extended by mk.fsgrep.match.TextSearch
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
CodeSearch

public class TextSearch
extends FileSearch

Author:
Murali Krishnan

Field Summary
static java.util.regex.Pattern RE_BLANK_LINE
           
 
Constructor Summary
TextSearch()
           
 
Method Summary
protected  void handleMatch(int linenum, java.lang.String line)
           
protected  void process(int linenum, java.lang.String line)
           
 void search()
           
protected  void setContinueReading(boolean val)
           
 void setStopAfterFirstMatch(boolean val)
           
protected  boolean shouldContinueReading()
           
 boolean shouldStopAfterFirstMatch()
           
 void stopAfterFirstMatch()
           
 
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
 

Field Detail

RE_BLANK_LINE

public static final java.util.regex.Pattern RE_BLANK_LINE
Constructor Detail

TextSearch

public TextSearch()
Method Detail

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.