X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FChangeRule.java;h=e8ef5df166896032fc63813b2980591c3093f25f;hb=refs%2Fheads%2Ftask%2FJAL-2562_SequenceI.findPosition;hp=d9ea870997b878bbaf7b2cf248542250b34a84e0;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git
diff --git a/src/com/stevesoft/pat/ChangeRule.java b/src/com/stevesoft/pat/ChangeRule.java
index d9ea870..e8ef5df 100755
--- a/src/com/stevesoft/pat/ChangeRule.java
+++ b/src/com/stevesoft/pat/ChangeRule.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;
-
-/** This class implements user defined special replacement rules
- * of the form ${=name}. See trans2.java
- * and trans2a.java.
- */
-public class ChangeRule extends SpecialRule {
- Regex NewRule;
- public ChangeRule(ChangeRule c) { NewRule=c.NewRule; }
- public ChangeRule(String nm,Regex rr) { name=nm; NewRule = rr; }
- public ChangeRule(String nm,Transformer tr) { name=nm; NewRule = tr.rp; }
- public Object clone1() { return new ChangeRule(this); }
- public String toString1() { return "${="+name+"}"; }
- public void apply(StringBufferLike sb,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;
+
+/**
+ * This class implements user defined special replacement rules of the form
+ * ${=name}. See trans2.java and trans2a.java.
+ */
+public class ChangeRule extends SpecialRule
+{
+ Regex NewRule;
+
+ public ChangeRule(ChangeRule c)
+ {
+ NewRule = c.NewRule;
+ }
+
+ public ChangeRule(String nm, Regex rr)
+ {
+ name = nm;
+ NewRule = rr;
+ }
+
+ public ChangeRule(String nm, Transformer tr)
+ {
+ name = nm;
+ NewRule = tr.rp;
+ }
+
+ public Object clone1()
+ {
+ return new ChangeRule(this);
+ }
+
+ public String toString1()
+ {
+ return "${=" + name + "}";
+ }
+
+ public void apply(StringBufferLike sb, RegRes rr)
+ {
+ }
+}