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