2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
9 import java.util.Hashtable;
\r
11 /** This class represents the \G pattern element. */
\r
12 class BackG extends Pattern {
\r
17 public int matchInternal(int pos,Pthings pt) {
\r
18 return pos==pt.lastPos ? nextMatch(pos,pt) : -1;
\r
20 public String toString() {
\r
21 return "\\G"+nextString();
\r
23 public patInt minChars() { return new patInt(1); }
\r
24 public patInt maxChars() { return new patInt(1); }
\r
25 Pattern clone1(Hashtable h) { return new BackG(); }
\r