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