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, generateExtraSerWriteStatements
protected 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 GeneratorExtension
extraSpecificImports
in class SerializableExtension
protected 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.IOException
protected void writeExtraDeclarations(ClassInfo info, java.lang.Class superclassType, Property[] props, java.lang.Class[] propTypes, IndentedWriter iw) throws java.io.IOException
java.io.IOException
public void generate(ClassInfo info, java.lang.Class superclassType, Property[] props, java.lang.Class[] propTypes, IndentedWriter iw) throws java.io.IOException
generate
in interface GeneratorExtension
generate
in class SerializableExtension
java.io.IOException
protected void writeStoreObject(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
writeStoreObject
in class SerializableExtension
java.io.IOException
protected void writeIndirectStoreObject(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
java.io.IOException
protected void writeUnstoreObject(Property prop, java.lang.Class propType, IndentedWriter iw) throws java.io.IOException
writeUnstoreObject
in class SerializableExtension
java.io.IOException