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;
10 /** This class is used internally. */
11 class RuleHolder extends ReplaceRule
13 ReplaceRule held = null;
19 RuleHolder(ReplaceRule h)
24 public Object clone1()
26 return new RuleHolder(held);
29 public String toString1()
31 return held.toString1();
34 public void apply(StringBufferLike sb, RegRes rr)
39 public ReplaceRule arg(String s)
41 return new RuleHolder(held.arg(s));