X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=unused%2Fcom%2Fstevesoft%2Fpat%2FStringRule.java;h=e0aedae015da181dd5bbd6c69a6eb24af3c3719f;hb=6319110ce33faa76ee6cf9832e78faa224510fed;hp=d9abe580f39836cd5905cbcfe1109dcae8d0ccbf;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44;p=jalviewjs.git diff --git a/unused/com/stevesoft/pat/StringRule.java b/unused/com/stevesoft/pat/StringRule.java index d9abe58..e0aedae 100644 --- a/unused/com/stevesoft/pat/StringRule.java +++ b/unused/com/stevesoft/pat/StringRule.java @@ -1,39 +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.appendStr(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.appendStr(s); + } + + public String toString1() + { + return s; + } + + public Object clone1() + { + return new StringRule(s); + } +}