needed for applet search
[jalview.git] / src / com / stevesoft / pat / BackG.java
diff --git a/src/com/stevesoft/pat/BackG.java b/src/com/stevesoft/pat/BackG.java
new file mode 100755 (executable)
index 0000000..78115f8
--- /dev/null
@@ -0,0 +1,26 @@
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License.  Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+//    -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+import java.util.Hashtable;\r
+\r
+/** This class represents the \G pattern element. */\r
+class BackG extends Pattern {\r
+    char c,altc,altc2;\r
+    int mask;\r
+    public BackG() {\r
+    }\r
+    public int matchInternal(int pos,Pthings pt) {\r
+        return pos==pt.lastPos ? nextMatch(pos,pt) : -1;\r
+    }\r
+    public String toString() {\r
+        return "\\G"+nextString();\r
+    }\r
+    public patInt minChars() { return new patInt(1); }\r
+    public patInt maxChars() { return new patInt(1); }\r
+    Pattern clone1(Hashtable h) { return new BackG(); }\r
+}\r