JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / unused / com / stevesoft / pat / NoPattern.java
1 package //
2 // This software is now distributed according to
3 // the Lesser Gnu Public License.  Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
5 // the details.
6 //    -- Happy Computing!
7 //
8 com.stevesoft.pat;
9
10 import java.util.*;
11
12 /**
13  * The idea behind this class is simply to eliminate the need for testing to see
14  * if Regex.thePattern is null. Every instruction we can eliminate from _search
15  * will help.
16  */
17 public class NoPattern extends Pattern
18 {
19   public String toString()
20   {
21     return "(?e=#)[^#d#D]";
22   }
23
24   public int matchInternal(int i, Pthings p)
25   {
26     return -1;
27   }
28
29   Pattern clone1(Hashtable h)
30   {
31     return new NoPattern();
32   }
33 }