public class IndirectingSerializableExtension extends SerializableExtension
| Modifier and Type | Field and Description |
|---|---|
protected String |
findIndirectorExpr |
protected String |
indirectorClassName |
| Modifier | Constructor and Description |
|---|---|
protected |
IndirectingSerializableExtension() |
|
IndirectingSerializableExtension(String indirectorClassName)
We expect this indirector to be a public class with a public no_arg ctor;
If you need the indirector initialized somehow, you'll have to extend
the class.
|
| Modifier and Type | Method and Description |
|---|---|
Collection |
extraSpecificImports() |
void |
generate(ClassInfo info,
Class superclassType,
Property[] props,
Class[] propTypes,
IndentedWriter iw) |
protected IndirectPolicy |
indirectingPolicy(Property prop,
Class propType) |
protected void |
writeExtraDeclarations(ClassInfo info,
Class superclassType,
Property[] props,
Class[] propTypes,
IndentedWriter iw) |
protected void |
writeIndirectStoreObject(Property prop,
Class propType,
IndentedWriter iw) |
protected void |
writeInitializeIndirector(Property prop,
Class propType,
IndentedWriter iw)
hook method...
|
protected void |
writeStoreObject(Property prop,
Class propType,
IndentedWriter iw) |
protected void |
writeUnstoreObject(Property prop,
Class propType,
IndentedWriter iw) |
extraGeneralImports, extraInterfaceNames, generateExtraSerInitializers, generateExtraSerWriteStatementsprotected String findIndirectorExpr
protected String indirectorClassName
public IndirectingSerializableExtension(String indirectorClassName)
writeInitializeIndirector(com.mchange.v2.codegen.bean.Property, java.lang.Class, com.mchange.v2.codegen.IndentedWriter),
writeExtraDeclarations(com.mchange.v2.codegen.bean.ClassInfo, java.lang.Class, com.mchange.v2.codegen.bean.Property[], java.lang.Class[], com.mchange.v2.codegen.IndentedWriter)protected IndirectingSerializableExtension()
public Collection extraSpecificImports()
extraSpecificImports in interface GeneratorExtensionextraSpecificImports in class SerializableExtensionprotected IndirectPolicy indirectingPolicy(Property prop, Class propType)
protected void writeInitializeIndirector(Property prop, Class propType, IndentedWriter iw) throws IOException
IOExceptionprotected void writeExtraDeclarations(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) throws IOException
IOExceptionpublic void generate(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) throws IOException
generate in interface GeneratorExtensiongenerate in class SerializableExtensionIOExceptionprotected void writeStoreObject(Property prop, Class propType, IndentedWriter iw) throws IOException
writeStoreObject in class SerializableExtensionIOExceptionprotected void writeIndirectStoreObject(Property prop, Class propType, IndentedWriter iw) throws IOException
IOExceptionprotected void writeUnstoreObject(Property prop, Class propType, IndentedWriter iw) throws IOException
writeUnstoreObject in class SerializableExtensionIOException