public interface GenFactory
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).
AttributeGen createAttributeGen()
ConstGen createConstGen()
EnumGen createEnumGen()
ExceptionGen createExceptionGen()
ForwardGen createForwardGen()
ForwardValueGen createForwardValueGen()
IncludeGen createIncludeGen()
InterfaceGen createInterfaceGen()
ValueGen createValueGen()
ValueBoxGen createValueBoxGen()
MethodGen createMethodGen()
ModuleGen createModuleGen()
NativeGen createNativeGen()
ParameterGen createParameterGen()
PragmaGen createPragmaGen()
PrimitiveGen createPrimitiveGen()
SequenceGen createSequenceGen()
StringGen createStringGen()
StructGen createStructGen()
TypedefGen createTypedefGen()
UnionGen createUnionGen()
Copyright © 2021 JBoss by Red Hat. All rights reserved.