JAL-1807 still testing
[jalviewjs.git] / unused / 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 /**\r
13  * The idea behind this class is simply to eliminate the need for testing to see\r
14  * if Regex.thePattern is null. Every instruction we can eliminate from _search\r
15  * will help.\r
16  */\r
17 public class NoPattern 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