c5eba3c963fbc5053c50a7c2f27bbf934e2c0a46
[jalview.git] / src / com / stevesoft / pat / NoPattern.java
1 package //\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     com.stevesoft.pat;\r
9 \r
10 import java.util.*;\r
11 \r
12 /** The idea behind this class is simply to eliminate the need for\r
13  * testing to see if Regex.thePattern is null.  Every instruction\r
14  * we can eliminate from _search will help.\r
15  */\r
16 public class NoPattern\r
17     extends Pattern\r
18 {\r
19   public String toString()\r
20   {\r
21     return "(?e=#)[^#d#D]";\r
22   }\r
23 \r
24   public int matchInternal(int i, Pthings p)\r
25   {\r
26     return -1;\r
27   }\r
28 \r
29   Pattern clone1(Hashtable h)\r
30   {\r
31     return new NoPattern();\r
32   }\r
33 }\r