 /*______________________________________________________________________________
                                                       WWS Coding Team

    Visitor.java
      7/31/98

      Abstract Class used for by Traversal Class to traverse through a tree structure.
      
      Developed by:     David Wagstaff
                        Jeff Sabin

      Disclaimer:

            This program is an unpublished copyrighted work which is proprietary
            to Novell, Inc. and contains confidential information that is not
            to be reproduced or disclosed to any other person or entity without
            prior written consent from Novell, Inc. in each and every instance.

            WARNING:  Unauthorized reproduction of this program as well as
            unauthorized preparation of derivative works based upon the
            program or distribution of copies by sale, rental, lease or
            lending are violations of federal copyright laws and state trade
            secret laws, punishable by civil and criminal penalties.

______________________________________________________________________________*/

/**
  *
  * Abstract Class used for by Traversal Class to traverse through a tree structure.
  * 
  * @version 1.0 7/31/98
  * @author Jeff Sabin/David Wagstaff
  *
  */
abstract class Visitor
	{
	public void before(Object host)
		{
  		try                                                                                                       
  			{
			Object parameters[]={host};
  			Class parameterTypes[]={host.getClass()};                                                             
   			getClass().getDeclaredMethod("before", parameterTypes).invoke(this, parameters);
   			}                                                                                                     
   		catch(Exception e){}                                                                                        
		}

	public void after(Object host)
		{
  		try                                                                                                       
  			{
			Object parameters[]={host};
  			Class parameterTypes[]={host.getClass()};                                                             
   			getClass().getDeclaredMethod("after", parameterTypes).invoke(this, parameters);
   			}                                                                                                     
   		catch(Exception e){}                                                                                        
		}
	}

