public class IndirectingSerializableExtension extends SerializableExtension
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
findIndirectorExpr |
protected java.lang.String |
indirectorClassName |
| Modifier | Constructor and Description |
|---|---|
protected |
IndirectingSerializableExtension() |
|
IndirectingSerializableExtension(java.lang.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 |
|---|---|
java.util.Collection |
extraSpecificImports() |
void |
generate(ClassInfo info,
java.lang.Class superclassType,
Property[] props,
java.lang.Class[] propTypes,
IndentedWriter iw) |
protected IndirectPolicy |
indirectingPolicy(Property prop,
java.lang.Class propType) |
protected void |
writeExtraDeclarations(ClassInfo info,
java.lang.Class superclassType,
Property[] props,
java.lang.Class[] propTypes,
IndentedWriter iw) |
protected void |
writeIndirectStoreObject(Property prop,
java.lang.Class propType,
IndentedWriter iw) |
protected void |
writeInitializeIndirector(Property prop,
java.lang.Class propType,
IndentedWriter iw)
hook method...
|
protected void |
writeStoreObject(Property prop,
java.lang.Class propType,
IndentedWriter iw) |
protected void |
writeUnstoreObject(Property prop,
java.lang.Class propType,
IndentedWriter iw) |
extraGeneralImports, extraInterfaceNames, generateExtraSerInitializers, generateExtraSerWriteStatementsprotected java.lang.String findIndirectorExpr
protected java.lang.String indirectorClassName
public IndirectingSerializableExtension(java.lang.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 java.util.Collection extraSpecificImports()
extraSpecificImports in interface GeneratorExtensionextraSpecificImports in class SerializableExtensionprotected IndirectPolicy indirectingPolicy(Property prop, java.lang.Class propType)
protected void writeInitializeIndirector(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
java.io.IOExceptionprotected void writeExtraDeclarations(ClassInfo info, java.lang.Class superclassType, Property[] props, java.lang.Class[] propTypes, IndentedWriter iw) throws java.io.IOException
java.io.IOExceptionpublic void generate(ClassInfo info, java.lang.Class superclassType, Property[] props, java.lang.Class[] propTypes, IndentedWriter iw) throws java.io.IOException
generate in interface GeneratorExtensiongenerate in class SerializableExtensionjava.io.IOExceptionprotected void writeStoreObject(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
writeStoreObject in class SerializableExtensionjava.io.IOExceptionprotected void writeIndirectStoreObject(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
java.io.IOExceptionprotected void writeUnstoreObject(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
writeUnstoreObject in class SerializableExtensionjava.io.IOException