--- /dev/null
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License. Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+// -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+\r
+/** The apply method of this ReplaceRule simply appends the text\r
+ it was initialized with to the StringBufferLike.\r
+ @see com.stevesoft.pat.ReplaceRule\r
+ */\r
+public class StringRule extends ReplaceRule {\r
+ String s;\r
+ public StringRule(String s) { this.s = s; }\r
+ public void apply(StringBufferLike sb,RegRes res) {\r
+ sb.append(s);\r
+ }\r
+ public String toString1() { return s; }\r
+ public Object clone1() { return new StringRule(s); }\r
+}\r