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