3bac3298baf228d35e9695482f086c8341784b46
[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 import java.util.*;\r
10 \r
11 /** The idea behind this class is simply to eliminate the need for\r
12   * testing to see if Regex.thePattern is null.  Every instruction\r
13   * we can eliminate from _search will help.\r
14   */\r
15 public class NoPattern extends Pattern {\r
16     public String toString() { return "(?e=#)[^#d#D]"; }\r
17     public int matchInternal(int i,Pthings p) { return -1; }\r
18     Pattern clone1(Hashtable h) { return new NoPattern(); }\r
19 }\r