Top Fields Constructors Methods
com.mchange.v2.codegen.bean

public Class IndirectingSerializableExtension

extends SerializableExtension
Class Inheritance
Imports
java.util.*, java.io.Serializable, .IOException, com.mchange.v2.codegen.IndentedWriter, com.mchange.v2.ser.IndirectPolicy

Field Summary

Modifier and TypeField and Description
protected String
protected String
Inherited from com.mchange.v2.codegen.bean.SerializableExtension:
transientPropertiestransientPropertyInitializers

Constructor Summary

AccessConstructor and Description
public
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.

protected

Method Summary

Modifier and TypeMethod and Description
public Collection<E>
public void
generate(ClassInfo info, Class<T> superclassType, Property[] props, Class<T>[] propTypes, IndentedWriter iw)

Overrides com.mchange.v2.codegen.bean.SerializableExtension.generate.

Implements com.mchange.v2.codegen.bean.GeneratorExtension.generate.

Deprecated as a consequence of IndentedWriter being deprecated.

protected IndirectPolicy
indirectingPolicy(Property prop, Class<T> propType)

protected void
writeExtraDeclarations(ClassInfo info, Class<T> superclassType, Property[] props, Class<T>[] propTypes, IndentedWriter iw)
Deprecated as a consequence of IndentedWriter being deprecated.

protected void
writeIndirectStoreObject(Property prop, Class<T> propType, IndentedWriter iw)
Deprecated as a consequence of IndentedWriter being deprecated.

protected void
writeInitializeIndirector(Property prop, Class<T> propType, IndentedWriter iw)
Deprecated as a consequence of IndentedWriter being deprecated.

hook method...

protected void
writeStoreObject(Property prop, Class<T> propType, IndentedWriter iw)

Overrides com.mchange.v2.codegen.bean.SerializableExtension.writeStoreObject.

Deprecated as a consequence of IndentedWriter being deprecated.

protected void
writeUnstoreObject(Property prop, Class<T> propType, IndentedWriter iw)

Overrides com.mchange.v2.codegen.bean.SerializableExtension.writeUnstoreObject.

Deprecated as a consequence of IndentedWriter being deprecated.

Inherited from com.mchange.v2.codegen.bean.SerializableExtension:
extraGeneralImportsextraInterfaceNamesgenerateExtraSerInitializersgenerateExtraSerWriteStatements

Field Detail

findIndirectorExprback to summary
protected String findIndirectorExpr
indirectorClassNameback to summary
protected String indirectorClassName

Constructor Detail

IndirectingSerializableExtensionback to summary
public 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.

See Also
writeInitializeIndirector, writeExtraDeclarations
IndirectingSerializableExtensionback to summary
protected IndirectingSerializableExtension()

Method Detail

extraSpecificImportsback to summary
public Collection<E> extraSpecificImports()

Overrides com.mchange.v2.codegen.bean.SerializableExtension.extraSpecificImports.

Implements com.mchange.v2.codegen.bean.GeneratorExtension.extraSpecificImports.

generateback to summary
public void generate(ClassInfo info, Class<T> superclassType, Property[] props, Class<T>[] propTypes, IndentedWriter iw) throws IOException

Overrides com.mchange.v2.codegen.bean.SerializableExtension.generate.

Implements com.mchange.v2.codegen.bean.GeneratorExtension.generate.

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.

indirectingPolicyback to summary
protected IndirectPolicy indirectingPolicy(Property prop, Class<T> propType)
writeExtraDeclarationsback to summary
protected void writeExtraDeclarations(ClassInfo info, Class<T> superclassType, Property[] props, Class<T>[] propTypes, IndentedWriter iw) throws IOException

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.

writeIndirectStoreObjectback to summary
protected void writeIndirectStoreObject(Property prop, Class<T> propType, IndentedWriter iw) throws IOException

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.

writeInitializeIndirectorback to summary
protected void writeInitializeIndirector(Property prop, Class<T> propType, IndentedWriter iw) throws IOException

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.

hook method... does nothing by default... override at will. The indirector will be called, uh, "indirector". You are in the middle of a method when you define this.

writeStoreObjectback to summary
protected void writeStoreObject(Property prop, Class<T> propType, IndentedWriter iw) throws IOException

Overrides com.mchange.v2.codegen.bean.SerializableExtension.writeStoreObject.

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.

writeUnstoreObjectback to summary
protected void writeUnstoreObject(Property prop, Class<T> propType, IndentedWriter iw) throws IOException

Overrides com.mchange.v2.codegen.bean.SerializableExtension.writeUnstoreObject.

Deprecated

as a consequence of IndentedWriter being deprecated. See corresponding docs for further information.