X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FNoPattern.java;h=c5eba3c963fbc5053c50a7c2f27bbf934e2c0a46;hb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;hp=3bac3298baf228d35e9695482f086c8341784b46;hpb=dd74fc4938723fe5ec48d4e5fdcfbe58ac42a48d;p=jalview.git diff --git a/src/com/stevesoft/pat/NoPattern.java b/src/com/stevesoft/pat/NoPattern.java index 3bac329..c5eba3c 100755 --- a/src/com/stevesoft/pat/NoPattern.java +++ b/src/com/stevesoft/pat/NoPattern.java @@ -1,19 +1,33 @@ -package// +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; + 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(); } + * 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(); + } }