com.mchange.v2.codegen.bean
Interface GeneratorExtension
- All Known Implementing Classes:
- BeanExtractingGeneratorExtension, CloneableExtension, CompleteConstructorGeneratorExtension, CopyConstructorGeneratorExtension, ExplicitDefaultConstructorGeneratorExtension, ExplicitPropsConstructorGeneratorExtension, IndirectingSerializableExtension, PropertyMapConstructorGeneratorExtension, PropertyReferenceableExtension, PropsToStringGeneratorExtension, SerializableExtension, SimpleStateBeanImportExportGeneratorExtension, StateBeanImportExportGeneratorExtension
public interface GeneratorExtension
By the time generate(...) is called, all extra interfaces and imports from all
GeneratorExtensions should be incorporated into the passed-in ClassInfo object.
extraGeneralImports
java.util.Collection extraGeneralImports()
extraSpecificImports
java.util.Collection extraSpecificImports()
extraInterfaceNames
java.util.Collection extraInterfaceNames()
generate
void generate(ClassInfo info,
java.lang.Class superclassType,
Property[] props,
java.lang.Class[] propTypes,
IndentedWriter iw)
throws java.io.IOException
- Throws:
java.io.IOException