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
9 /** This class is used internally. */
\r
10 class RuleHolder extends ReplaceRule {
\r
11 ReplaceRule held = null;
\r
13 RuleHolder(ReplaceRule h) { held = h; }
\r
14 public Object clone1() { return new RuleHolder(held); }
\r
15 public String toString1() { return held.toString1(); }
\r
16 public void apply(StringBufferLike sb,RegRes rr) {
\r
19 public ReplaceRule arg(String s) { return new RuleHolder(held.arg(s)); }
\r