out.println("  private void initPatterns()");
out.println("  " + decl);
  private void genInitPatterns(PrintWriter out)    throws IOException    {      out.println("  // Initialize the patterns that are used to match against incoming terms");      out.println("  private void initPatterns()");      out.println("  {");      Enumeration e = doEvents.keys();      while(e.hasMoreElements()) {	String key = (String)e.nextElement();	SpecOrderVector v = (SpecOrderVector)doEvents.get(key);	v.genPatterns(out, capitalize(key, false), "rec-do");      }      e = evalEvents.keys();      while(e.hasMoreElements()) {	String key = (String)e.nextElement();	SpecOrderVector v = (SpecOrderVector)evalEvents.get(key);	v.genPatterns(out, capitalize(key, false), "rec-eval");      }      e = otherEvents.keys();      while(e.hasMoreElements()) {	String key = (String)e.nextElement();	SpecOrderVector v = (SpecOrderVector)otherEvents.get(key);	v.genPatterns(out, capitalize(key, false), null);      }      out.println("  }\n");    }