X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcom%2Fstevesoft%2Fpat%2FStringRule.java;h=10557d8e95b971ef7fa11fd08e97d695e9cafb52;hb=aced09c4feeaf3406269442c14e54abeeb4cad81;hp=e831a1474cf3bbc6cd95d596e773f1fec83f7aa4;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git diff --git a/src/com/stevesoft/pat/StringRule.java b/src/com/stevesoft/pat/StringRule.java index e831a14..10557d8 100755 --- a/src/com/stevesoft/pat/StringRule.java +++ b/src/com/stevesoft/pat/StringRule.java @@ -1,37 +1,39 @@ -// -// 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; - -/** 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); - } -} +// +// 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; + +/** + * 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); + } +}