Interface GenFactory

All Known Implementing Classes:
GenFactory, Noop

public interface GenFactory
To extend this compiler framework to generate something other than the default, this factory interface must be implemented and the name of it must be set in the main method (see idl.Compile).

The implementation of each method should be quite simple. Take createAttributeGen, for instance. If the interface AttributeGen is implemented by a class called MyAttributeGen, then createAttributeGen will be the following:

 public AttributeGen createAttributeGen ()
 {
   return new MyAttributeGen ();
 }
 

If it is desired that a generator do nothing, it is not necessary to implement one which does nothing; you may simply write that particular create method so that it returns null.

Note that this class MUST have a public default constructor (one which takes no parameters).