licencing and format applied (eclipse)
[jalview.git] / src / com / stevesoft / pat / PushRule.java
index 3fbfe14..c9aee2b 100755 (executable)
@@ -1,47 +1,50 @@
-//\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\r
-    extends SpecialRule\r
-{\r
-  Regex NewRule;\r
-  public PushRule(PushRule p)\r
-  {\r
-    NewRule = p.NewRule;\r
-  }\r
-\r
-  public PushRule(String nm, Regex rr)\r
-  {\r
-    name = nm;\r
-    NewRule = rr;\r
-  }\r
-\r
-  public PushRule(String nm, Transformer tr)\r
-  {\r
-    name = nm;\r
-    NewRule = tr.rp;\r
-  }\r
-\r
-  public Object clone1()\r
-  {\r
-    return new PushRule(this);\r
-  }\r
-\r
-  public String String1()\r
-  {\r
-    return "${+" + name + "}";\r
-  }\r
-\r
-  public void apply(StringBufferLike sbl, RegRes rr)\r
-  {}\r
-}\r
+//
+// 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 <a
+ * href="http://javaregex.com/code/trans3.java.html">trans3.java</a> 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)
+  {
+  }
+}