X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FBackG.java;h=166b58cfbc1c5b354e872eaf3df722c08329d39e;hb=970956e40635fd5a86d46e399532abda64ccdf92;hp=78115f8d2daa1f99842e80545f5b5d4ff937d875;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/BackG.java b/src/com/stevesoft/pat/BackG.java index 78115f8..166b58c 100755 --- a/src/com/stevesoft/pat/BackG.java +++ b/src/com/stevesoft/pat/BackG.java @@ -1,26 +1,47 @@ -// -// 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; -import java.util.Hashtable; - -/** This class represents the \G pattern element. */ -class BackG extends Pattern { - char c,altc,altc2; - int mask; - public BackG() { - } - public int matchInternal(int pos,Pthings pt) { - return pos==pt.lastPos ? nextMatch(pos,pt) : -1; - } - public String toString() { - return "\\G"+nextString(); - } - public patInt minChars() { return new patInt(1); } - public patInt maxChars() { return new patInt(1); } - Pattern clone1(Hashtable h) { return new BackG(); } -} +// +// 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; + +import java.util.Hashtable; + +/** This class represents the \G pattern element. */ +class BackG extends Pattern +{ + char c, altc, altc2; + + int mask; + + public BackG() + { + } + + public int matchInternal(int pos, Pthings pt) + { + return pos == pt.lastPos ? nextMatch(pos, pt) : -1; + } + + public String toString() + { + return "\\G" + nextString(); + } + + public patInt minChars() + { + return new patInt(1); + } + + public patInt maxChars() + { + return new patInt(1); + } + + Pattern clone1(Hashtable h) + { + return new BackG(); + } +}