2 // This software is now distributed according to
3 // the Lesser Gnu Public License. Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
8 package com.stevesoft.pat;
11 * The apply method of this ReplaceRule simply appends the text it was
12 * initialized with to the StringBufferLike.
14 * @see com.stevesoft.pat.ReplaceRule
16 public class StringRule extends ReplaceRule
20 public StringRule(String s)
25 public void apply(StringBufferLike sb, RegRes res)
30 public String toString1()
35 public Object clone1()
37 return new StringRule(s);