X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FNoPattern.java;h=37d6384e62dab7df539478cb6553a40b75614239;hb=4b2392caa53f1de3400e7916d1d9c7b815d446f4;hp=3bac3298baf228d35e9695482f086c8341784b46;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/NoPattern.java b/src/com/stevesoft/pat/NoPattern.java index 3bac329..37d6384 100755 --- a/src/com/stevesoft/pat/NoPattern.java +++ b/src/com/stevesoft/pat/NoPattern.java @@ -1,19 +1,33 @@ -package// -// This software is now distributed according to -// the Lesser Gnu Public License. Please see -// http://www.gnu.org/copyleft/lesser.txt for -// the details. -// -- Happy Computing! -// -com.stevesoft.pat; -import java.util.*; - -/** The idea behind this class is simply to eliminate the need for - * testing to see if Regex.thePattern is null. Every instruction - * we can eliminate from _search will help. - */ -public class NoPattern extends Pattern { - public String toString() { return "(?e=#)[^#d#D]"; } - public int matchInternal(int i,Pthings p) { return -1; } - Pattern clone1(Hashtable h) { return new NoPattern(); } -} +package // +// This software is now distributed according to +// the Lesser Gnu Public License. Please see +// http://www.gnu.org/copyleft/lesser.txt for +// the details. +// -- Happy Computing! +// +com.stevesoft.pat; + +import java.util.Hashtable; + +/** + * The idea behind this class is simply to eliminate the need for testing to see + * if Regex.thePattern is null. Every instruction we can eliminate from _search + * will help. + */ +public class NoPattern extends Pattern +{ + public String toString() + { + return "(?e=#)[^#d#D]"; + } + + public int matchInternal(int i, Pthings p) + { + return -1; + } + + Pattern clone1(Hashtable h) + { + return new NoPattern(); + } +}