2 // This software is now distributed according to
3 // the Lesser Gnu Public License. Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
8 package com.stevesoft.pat;
10 import java.util.Hashtable;
13 * This pattern matches nothing -- it is found in patterns like (hello|world|)
14 * where a zero-length subelement occurs.
16 class NullPattern extends Pattern
18 public String toString()
23 public int matchInternal(int p, Pthings pt)
25 return nextMatch(p, pt);
28 public patInt maxChars()
33 Pattern clone1(Hashtable h)
35 return new NullPattern();