X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FPushRule.java;h=e34cbae97186257a4b76728d0972c879f65ce488;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=cdc33f93ee6ce3b3120342430c512b453589b425;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git
diff --git a/src/com/stevesoft/pat/PushRule.java b/src/com/stevesoft/pat/PushRule.java
index cdc33f9..e34cbae 100755
--- a/src/com/stevesoft/pat/PushRule.java
+++ b/src/com/stevesoft/pat/PushRule.java
@@ -1,22 +1,50 @@
-//
-// This software is now distributed according to
-// the Lesser Gnu Public License. Please see
-// http://www.gnu.org/copyleft/lesser.txt for
-// the details.
-// -- Happy Computing!
-//
-package com.stevesoft.pat;
-
-/** See the example file
- trans3.java for
- further examples of how this is used. You will probably not
- want to call it directly. */
-public class PushRule extends SpecialRule {
- Regex NewRule;
- public PushRule(PushRule p) { NewRule = p.NewRule; }
- public PushRule(String nm,Regex rr) { name=nm; NewRule = rr; }
- public PushRule(String nm,Transformer tr) { name = nm; NewRule = tr.rp; }
- public Object clone1() { return new PushRule(this); }
- public String String1() { return "${+"+name+"}"; }
- public void apply(StringBufferLike sbl,RegRes rr) {}
-}
+//
+// This software is now distributed according to
+// the Lesser Gnu Public License. Please see
+// http://www.gnu.org/copyleft/lesser.txt for
+// the details.
+// -- Happy Computing!
+//
+package com.stevesoft.pat;
+
+/**
+ * See the example file
+ * trans3.java for
+ * further examples of how this is used. You will probably not want to call it
+ * directly.
+ */
+public class PushRule extends SpecialRule
+{
+ Regex NewRule;
+
+ public PushRule(PushRule p)
+ {
+ NewRule = p.NewRule;
+ }
+
+ public PushRule(String nm, Regex rr)
+ {
+ name = nm;
+ NewRule = rr;
+ }
+
+ public PushRule(String nm, Transformer tr)
+ {
+ name = nm;
+ NewRule = tr.rp;
+ }
+
+ public Object clone1()
+ {
+ return new PushRule(this);
+ }
+
+ public String String1()
+ {
+ return "${+" + name + "}";
+ }
+
+ public void apply(StringBufferLike sbl, RegRes rr)
+ {
+ }
+}