| java.lang.Object com.mchange.v2.codegen.bean.SerializableExtension
All known Subclasses: com.mchange.v2.codegen.bean.IndirectingSerializableExtension,
SerializableExtension | public class SerializableExtension implements GeneratorExtension(Code) | | Note: this class pays no attention to whether users have marked any property variables as transient.
In fact, it will work most efficiently if users mark ALL variables as transient... to define transient
properties for this class, use the constructor which allows a user-specified set of transients.
|
Method Summary | |
public Collection | extraGeneralImports() | public Collection | extraInterfaceNames() | public Collection | extraSpecificImports() | public void | generate(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) | protected void | generateExtraSerInitializers(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) | protected void | generateExtraSerWriteStatements(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw) | protected void | writeStoreObject(Property prop, Class propType, IndentedWriter iw) | protected void | writeUnstoreObject(Property prop, Class propType, IndentedWriter iw) |
transientProperties | Set transientProperties(Code) | | |
transientPropertyInitializers | Map transientPropertyInitializers(Code) | | |
SerializableExtension | public SerializableExtension(Set transientProperties, Map transientPropertyInitializers)(Code) | | Parameters: transientProperties - a set of Strings, the names of all properties that should be considered transient and not serialized Parameters: transientPropertyInitializers - an optional Map of a subset of the transient property names to non-default initializationexpressions, which should be unterminated expressions, and which will be used verbatim in the generated code. |
SerializableExtension | public SerializableExtension()(Code) | | |
|
|