X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FAmpersandRule.java;h=0496a193b14e6b8b83cfd87166f24f5ce194392f;hb=506d60f0e188723ddc91c26824b41ac7034df3fe;hp=f838ab2609828507364e6ac01423d089192f7ba7;hpb=60f2d6c034560415fd0139c8bc7df0c19cae1186;p=jalview.git diff --git a/src/com/stevesoft/pat/AmpersandRule.java b/src/com/stevesoft/pat/AmpersandRule.java index f838ab2..0496a19 100755 --- a/src/com/stevesoft/pat/AmpersandRule.java +++ b/src/com/stevesoft/pat/AmpersandRule.java @@ -1,29 +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.append(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.append(res.stringMatched()); + } + + public String toString1() + { + return "$&"; + } +}