mk.fsgrep.match
Class Replace

java.lang.Object
  extended by mk.fsgrep.match.Replace
All Implemented Interfaces:
java.lang.Runnable

public class Replace
extends java.lang.Object
implements java.lang.Runnable

Search for a regular expression in a file.

Author:
Murali Krishnan

Field Summary
static java.util.regex.Pattern RE_BLANK_LINE
           
 
Constructor Summary
Replace(ReplaceControl pControl, TargetFile pFile)
           
 
Method Summary
protected  ReplaceControl getControl()
           
protected  TargetFile getFile()
           
protected  java.util.List<FileLine> getNewLines()
           
protected  boolean getWasChanged()
           
protected  void process(FileLine tfline)
           
protected  void replace()
           
 void run()
           
protected  void search()
           
protected  void setNewLines(java.util.List<FileLine> val)
           
protected  void setWasChanged(boolean val)
           
 
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

Replace

public Replace(ReplaceControl pControl,
               TargetFile pFile)
Method Detail

getFile

protected TargetFile getFile()

getControl

protected ReplaceControl getControl()

getNewLines

protected java.util.List<FileLine> getNewLines()

getWasChanged

protected boolean getWasChanged()

setNewLines

protected void setNewLines(java.util.List<FileLine> val)

setWasChanged

protected void setWasChanged(boolean val)

search

protected void search()

process

protected void process(FileLine tfline)

replace

protected void replace()

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2009. All Rights Reserved.