X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FNullPattern.java;h=09460def1b88d3318c3fb2ee5e59d25c243c5239;hb=2253f31565d4e96edffce2fac596e2ef0578d596;hp=abdc5fa41d882ba30223b37e30978f4e746c1ebf;hpb=d1f6cf53b29322601c621da9a6b3cb09dd28235e;p=jalview.git diff --git a/src/com/stevesoft/pat/NullPattern.java b/src/com/stevesoft/pat/NullPattern.java index abdc5fa..09460de 100755 --- a/src/com/stevesoft/pat/NullPattern.java +++ b/src/com/stevesoft/pat/NullPattern.java @@ -1,37 +1,37 @@ -// -// 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! -// -package com.stevesoft.pat; - -import java.util.*; - -/** This pattern matches nothing -- it is found in patterns - * like (hello|world|) where a zero-length subelement occurs. - */ -class NullPattern - extends Pattern -{ - public String toString() - { - return nextString(); - } - - public int matchInternal(int p, Pthings pt) - { - return nextMatch(p, pt); - } - - public patInt maxChars() - { - return new patInt(0); - } - - Pattern clone1(Hashtable h) - { - return new NullPattern(); - } -} +// +// 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! +// +package com.stevesoft.pat; + +import java.util.*; + +/** + * This pattern matches nothing -- it is found in patterns like (hello|world|) + * where a zero-length subelement occurs. + */ +class NullPattern extends Pattern +{ + public String toString() + { + return nextString(); + } + + public int matchInternal(int p, Pthings pt) + { + return nextMatch(p, pt); + } + + public patInt maxChars() + { + return new patInt(0); + } + + Pattern clone1(Hashtable h) + { + return new NullPattern(); + } +}