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(StringBufferLike sb,RegRes res) method of this derivation
\r
11 of ReplaceRule appends the contents of res.right() to the StringBufferLike sb.
\r
12 @see com.stevesoft.pat.ReplaceRule
\r
14 public class RightRule extends ReplaceRule {
\r
15 public RightRule() {}
\r
16 public void apply(StringBufferLike sb,RegRes res) {
\r
17 sb.append(res.right());
\r
19 public String toString1() {
\r