X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FRightRule.java;h=cddcb4a9c950dc6a2b4178282cecf1842cbc5bac;hb=499d28231522cf0f831b4d3acf944f00c8ece3a4;hp=c27d2e4fd57692b2c5a60b6f7256f6a8ee9c6345;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git diff --git a/src/com/stevesoft/pat/RightRule.java b/src/com/stevesoft/pat/RightRule.java index c27d2e4..cddcb4a 100755 --- a/src/com/stevesoft/pat/RightRule.java +++ b/src/com/stevesoft/pat/RightRule.java @@ -1,29 +1,31 @@ -// -// 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(StringBufferLike sb,RegRes res) method of this derivation - of ReplaceRule appends the contents of res.right() to the StringBufferLike sb. - @see com.stevesoft.pat.ReplaceRule - */ -public class RightRule - extends ReplaceRule -{ - public RightRule() - {} - - public void apply(StringBufferLike sb, RegRes res) - { - sb.append(res.right()); - } - - 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; + +/** + * The apply(StringBufferLike sb,RegRes res) method of this derivation of + * ReplaceRule appends the contents of res.right() to the StringBufferLike sb. + * + * @see com.stevesoft.pat.ReplaceRule + */ +public class RightRule extends ReplaceRule +{ + public RightRule() + { + } + + public void apply(StringBufferLike sb, RegRes res) + { + sb.append(res.right()); + } + + public String toString1() + { + return "$'"; + } +}