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.Hashtable; 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 { toString()19 public String toString() 20 { 21 return "(?e=#)[^#d#D]"; 22 } 23 matchInternal(int i, Pthings p)24 public int matchInternal(int i, Pthings p) 25 { 26 return -1; 27 } 28 clone1(Hashtable h)29 Pattern clone1(Hashtable h) 30 { 31 return new NoPattern(); 32 } 33 } 34