X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcom%2Fstevesoft%2Fpat%2FLeftRule.java;h=c75a0a5a8089c9aaf8fbf29c6609e1c55dd2ec82;hb=5e1f568e89eb53559f2c66bd2ac7292fb8c56349;hp=0b9bae326b5022786dc4192c567e131a30a3eee3;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git diff --git a/src/com/stevesoft/pat/LeftRule.java b/src/com/stevesoft/pat/LeftRule.java index 0b9bae3..c75a0a5 100755 --- a/src/com/stevesoft/pat/LeftRule.java +++ b/src/com/stevesoft/pat/LeftRule.java @@ -1,30 +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.left() to the StringBuffer - sb. - @see com.stevesoft.pat.ReplaceRule - */ -public class LeftRule - extends ReplaceRule -{ - public LeftRule() - {} - - public void apply(StringBufferLike sb, RegRes res) - { - sb.append(res.left()); - } - - 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.left() to the StringBuffer sb. + * + * @see com.stevesoft.pat.ReplaceRule + */ +public class LeftRule extends ReplaceRule +{ + public LeftRule() + { + } + + public void apply(StringBufferLike sb, RegRes res) + { + sb.append(res.left()); + } + + public String toString1() + { + return "$`"; + } +}