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, generateExtraSerWriteStatements
protected 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 GeneratorExtension
extraSpecificImports
in class SerializableExtension
protected IndirectPolicy indirectingPolicy(Property prop, Class propType)
protected void writeInitializeIndirector(Property prop, Class propType, IndentedWriter iw) throws IOException
IOException
protected void writeExtraDeclarations(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) throws IOException
IOException
public void generate(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) throws IOException
generate
in interface GeneratorExtension
generate
in class SerializableExtension
IOException
protected void writeStoreObject(Property prop, Class propType, IndentedWriter iw) throws IOException
writeStoreObject
in class SerializableExtension
IOException
protected void writeIndirectStoreObject(Property prop, Class propType, IndentedWriter iw) throws IOException
IOException
protected void writeUnstoreObject(Property prop, Class propType, IndentedWriter iw) throws IOException
writeUnstoreObject
in class SerializableExtension
IOException
Copyright © 2018 com.mchange. All rights reserved.