X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FLeftRule.java;h=c75a0a5a8089c9aaf8fbf29c6609e1c55dd2ec82;hb=c84d2601499c7d332cfd208f589686af8e3b1a20;hp=1737abd1cba9ed27b4858c7c9a35934131e4b818;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/LeftRule.java b/src/com/stevesoft/pat/LeftRule.java index 1737abd..c75a0a5 100755 --- a/src/com/stevesoft/pat/LeftRule.java +++ b/src/com/stevesoft/pat/LeftRule.java @@ -1,21 +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 "$`"; + } +}