com.sun.wts.tools.ant
Class Command

java.lang.Object
  extended by com.sun.wts.tools.ant.Command

public class Command
extends java.lang.Object

One replace command.

Author:
Kohsuke Kawaguchi

Constructor Summary
Command(java.util.regex.Pattern from, java.lang.String to)
           
Command(java.util.regex.Pattern from, java.lang.String to, java.util.List<java.util.regex.Pattern> excludes)
           
 
Method Summary
 java.lang.String replace(java.lang.String input)
          Replaces all the occurrences of the given pattern and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(java.util.regex.Pattern from,
               java.lang.String to)

Command

public Command(java.util.regex.Pattern from,
               java.lang.String to,
               java.util.List<java.util.regex.Pattern> excludes)
Method Detail

replace

public java.lang.String replace(java.lang.String input)
Replaces all the occurrences of the given pattern and returns it.