--- /dev/null
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License. Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+// -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+\r
+/** See the example file\r
+ <a href="http://javaregex.com/code/trans3.java.html">trans3.java</a> for\r
+ further examples of how this is used. You will probably not\r
+ want to call it directly. */\r
+public class PushRule extends SpecialRule {\r
+ Regex NewRule;\r
+ public PushRule(PushRule p) { NewRule = p.NewRule; }\r
+ public PushRule(String nm,Regex rr) { name=nm; NewRule = rr; }\r
+ public PushRule(String nm,Transformer tr) { name = nm; NewRule = tr.rp; }\r
+ public Object clone1() { return new PushRule(this); }\r
+ public String String1() { return "${+"+name+"}"; }\r
+ public void apply(StringBufferLike sbl,RegRes rr) {}\r
+}\r