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