mk.fsgrep.match
Class CodeSearch

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

public abstract class CodeSearch
extends TextSearch

Author:
Murali Krishnan

Field Summary
 
Fields inherited from class mk.fsgrep.match.TextSearch
RE_BLANK_LINE
 
Constructor Summary
CodeSearch()
           
 
Method Summary
 boolean isInBlockComment()
           
protected  boolean matchesNonComment(java.lang.String origLine)
           
protected  void process(int linenum, java.lang.String line)
           
protected  java.util.regex.Pattern reBlockCommentEnd()
           
protected  java.util.regex.Pattern reBlockCommentOneLine()
           
protected  java.util.regex.Pattern reBlockCommentStart()
           
protected  java.util.regex.Pattern reLineComment()
           
protected  java.util.regex.Pattern rePrincipleCommentPattern()
           
 void setInBlockComment(boolean val)
           
 
Methods inherited from class mk.fsgrep.match.TextSearch
handleMatch, search, setContinueReading, setStopAfterFirstMatch, shouldContinueReading, shouldStopAfterFirstMatch, 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
 

Constructor Detail

CodeSearch

public CodeSearch()
Method Detail

isInBlockComment

public boolean isInBlockComment()

setInBlockComment

public void setInBlockComment(boolean val)

matchesNonComment

protected boolean matchesNonComment(java.lang.String origLine)

process

protected void process(int linenum,
                       java.lang.String line)
Overrides:
process in class TextSearch

rePrincipleCommentPattern

protected java.util.regex.Pattern rePrincipleCommentPattern()

reLineComment

protected java.util.regex.Pattern reLineComment()

reBlockCommentStart

protected java.util.regex.Pattern reBlockCommentStart()

reBlockCommentEnd

protected java.util.regex.Pattern reBlockCommentEnd()

reBlockCommentOneLine

protected java.util.regex.Pattern reBlockCommentOneLine()


Copyright © 2009. All Rights Reserved.