Code example for Hashtable

Methods: elements

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