Code example for Hashtable

Methods: elements

0
   *  as the key  
   */ 
  protected static Hashtable _all = new Hashtable();
 
  /** Access to all non-terminals. */ 
  public static Enumeration all() {return _all.elements();}
 
  /** lookup a non terminal by name string */  
  public static non_terminal find(String with_name)
    { 
      if (with_name == null)
        return null; 
      else  
        return (non_terminal)_all.get(with_name);
    } 
 
  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/ 
 
  /** Table of all non terminals indexed by their index number. */ 
  protected static Hashtable _all_by_index = new Hashtable();