X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=unused%2Fcom%2Fstevesoft%2Fpat%2FAmpersandRule.java;fp=unused%2Fcom%2Fstevesoft%2Fpat%2FAmpersandRule.java;h=f99c21a20250d32b5b33ddc983104103ed96f609;hb=6319110ce33faa76ee6cf9832e78faa224510fed;hp=f304008dd53d9190024273ba90f3cac39cd6e164;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44;p=jalviewjs.git diff --git a/unused/com/stevesoft/pat/AmpersandRule.java b/unused/com/stevesoft/pat/AmpersandRule.java index f304008..f99c21a 100644 --- a/unused/com/stevesoft/pat/AmpersandRule.java +++ b/unused/com/stevesoft/pat/AmpersandRule.java @@ -1,30 +1,30 @@ -// -// 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 implements the $& element of the second argument to Regex. - * - * @see com.stevesoft.pat.ReplaceRule - */ -public final class AmpersandRule extends ReplaceRule -{ - public AmpersandRule() - { - } - - public void apply(StringBufferLike sb, RegRes res) - { - sb.appendStr(res.stringMatched()); - } - - public String toString1() - { - return "$&"; - } -} +// +// 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 implements the $& element of the second argument to Regex. + * + * @see com.stevesoft.pat.ReplaceRule + */ +public final class AmpersandRule extends ReplaceRule +{ + public AmpersandRule() + { + } + + public void apply(StringBufferLike sb, RegRes res) + { + sb.appendStr(res.stringMatched()); + } + + public String toString1() + { + return "$&"; + } +}