X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=unused%2Fcom%2Fstevesoft%2Fpat%2FLeftRule.java;h=856c7e0398ae87021ce9fa033b1831c8f893106a;hb=6319110ce33faa76ee6cf9832e78faa224510fed;hp=1a427f97c5207ba9214ec1ee4526f4b83c487226;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44;p=jalviewjs.git diff --git a/unused/com/stevesoft/pat/LeftRule.java b/unused/com/stevesoft/pat/LeftRule.java index 1a427f9..856c7e0 100644 --- a/unused/com/stevesoft/pat/LeftRule.java +++ b/unused/com/stevesoft/pat/LeftRule.java @@ -1,31 +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 javajs.util.SB sb. - * - * @see com.stevesoft.pat.ReplaceRule - */ -public class LeftRule extends ReplaceRule -{ - public LeftRule() - { - } - - public void apply(StringBufferLike sb, RegRes res) - { - sb.appendStr(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 javajs.util.SB sb. + * + * @see com.stevesoft.pat.ReplaceRule + */ +public class LeftRule extends ReplaceRule +{ + public LeftRule() + { + } + + public void apply(StringBufferLike sb, RegRes res) + { + sb.appendStr(res.left()); + } + + public String toString1() + { + return "$`"; + } +}