X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FNullPattern.java;h=09460def1b88d3318c3fb2ee5e59d25c243c5239;hb=506d60f0e188723ddc91c26824b41ac7034df3fe;hp=abdc5fa41d882ba30223b37e30978f4e746c1ebf;hpb=60f2d6c034560415fd0139c8bc7df0c19cae1186;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(); + } +}