X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FNullPattern.java;h=accd3f1d72a9544ab46c8c25d661e644b8cb4977;hb=af65be61ff37a024b694150efed2c6c9b81382ef;hp=abdc5fa41d882ba30223b37e30978f4e746c1ebf;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git diff --git a/src/com/stevesoft/pat/NullPattern.java b/src/com/stevesoft/pat/NullPattern.java index abdc5fa..accd3f1 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.Hashtable; + +/** + * 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(); + } +}