X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FBackG.java;fp=src%2Fcom%2Fstevesoft%2Fpat%2FBackG.java;h=78115f8d2daa1f99842e80545f5b5d4ff937d875;hb=c40cf903f740a72ab63dd1abc10fa33450ce660d;hp=0000000000000000000000000000000000000000;hpb=5bcae030b489e670c6983aa97eb9b6d8a6bbbbd5;p=jalview.git diff --git a/src/com/stevesoft/pat/BackG.java b/src/com/stevesoft/pat/BackG.java new file mode 100755 index 0000000..78115f8 --- /dev/null +++ b/src/com/stevesoft/pat/BackG.java @@ -0,0 +1,26 @@ +// +// 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(); } +}