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
11 * See the example file <a
\r
12 * href="http://javaregex.com/code/trans3.java.html">trans3.java</a> for
\r
13 * further examples of how this is used. You will probably not want to call it
\r
16 public class PushRule extends SpecialRule
\r
20 public PushRule(PushRule p)
\r
22 NewRule = p.NewRule;
\r
25 public PushRule(String nm, Regex rr)
\r
31 public PushRule(String nm, Transformer tr)
\r
37 public Object clone1()
\r
39 return new PushRule(this);
\r
42 public String String1()
\r
44 return "${+" + name + "}";
\r
47 public void apply(StringBufferLike sbl, RegRes rr)
\r