X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FStringRule.java;fp=src%2Fcom%2Fstevesoft%2Fpat%2FStringRule.java;h=e831a1474cf3bbc6cd95d596e773f1fec83f7aa4;hb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;hp=c37b6bb8953a6b68a6fe8b7f2b6e378e8cf1f5d2;hpb=dd74fc4938723fe5ec48d4e5fdcfbe58ac42a48d;p=jalview.git diff --git a/src/com/stevesoft/pat/StringRule.java b/src/com/stevesoft/pat/StringRule.java index c37b6bb..e831a14 100755 --- a/src/com/stevesoft/pat/StringRule.java +++ b/src/com/stevesoft/pat/StringRule.java @@ -10,13 +10,28 @@ package com.stevesoft.pat; /** The apply method of this ReplaceRule simply appends the text it was initialized with to the StringBufferLike. @see com.stevesoft.pat.ReplaceRule - */ -public class StringRule extends ReplaceRule { - String s; - public StringRule(String s) { this.s = s; } - public void apply(StringBufferLike sb,RegRes res) { - sb.append(s); - } - public String toString1() { return s; } - public Object clone1() { return new StringRule(s); } + */ +public class StringRule + extends ReplaceRule +{ + String s; + public StringRule(String s) + { + this.s = s; + } + + public void apply(StringBufferLike sb, RegRes res) + { + sb.append(s); + } + + public String toString1() + { + return s; + } + + public Object clone1() + { + return new StringRule(s); + } }