Remove redundancy in Eclipse
[jalview.git] / src / com / stevesoft / pat / BackG.java
1 //\r
2 // This software is now distributed according to\r
3 // the Lesser Gnu Public License.  Please see\r
4 // http://www.gnu.org/copyleft/lesser.txt for\r
5 // the details.\r
6 //    -- Happy Computing!\r
7 //\r
8 package com.stevesoft.pat;\r
9 import java.util.Hashtable;\r
10 \r
11 /** This class represents the \G pattern element. */\r
12 class BackG extends Pattern {\r
13     char c,altc,altc2;\r
14     int mask;\r
15     public BackG() {\r
16     }\r
17     public int matchInternal(int pos,Pthings pt) {\r
18         return pos==pt.lastPos ? nextMatch(pos,pt) : -1;\r
19     }\r
20     public String toString() {\r
21         return "\\G"+nextString();\r
22     }\r
23     public patInt minChars() { return new patInt(1); }\r
24     public patInt maxChars() { return new patInt(1); }\r
25     Pattern clone1(Hashtable h) { return new BackG(); }\r
26 }\r