Package com.sun.tools.corba.ee.idl
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).
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
createAttributeGen
AttributeGen createAttributeGen() -
createConstGen
ConstGen createConstGen() -
createEnumGen
EnumGen createEnumGen() -
createExceptionGen
ExceptionGen createExceptionGen() -
createForwardGen
ForwardGen createForwardGen() -
createForwardValueGen
ForwardValueGen createForwardValueGen() -
createIncludeGen
IncludeGen createIncludeGen() -
createInterfaceGen
InterfaceGen createInterfaceGen() -
createValueGen
ValueGen createValueGen() -
createValueBoxGen
ValueBoxGen createValueBoxGen() -
createMethodGen
MethodGen createMethodGen() -
createModuleGen
ModuleGen createModuleGen() -
createNativeGen
NativeGen createNativeGen() -
createParameterGen
ParameterGen createParameterGen() -
createPragmaGen
PragmaGen createPragmaGen() -
createPrimitiveGen
PrimitiveGen createPrimitiveGen() -
createSequenceGen
SequenceGen createSequenceGen() -
createStringGen
StringGen createStringGen() -
createStructGen
StructGen createStructGen() -
createTypedefGen
TypedefGen createTypedefGen() -
createUnionGen
UnionGen createUnionGen()
-