Class WriteObject

java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.methods.WriteObject

public class WriteObject extends ClassMethod
Method to generate the method "writeObject" using ASM.
 private void writeObject(ObjectOutputStream out)
 throws IOException
 {
     dnPreSerialize();
     out.defaultWriteObject();
 }
 
  • Constructor Details

    • WriteObject

      public WriteObject(ClassEnhancer enhancer, String name, int access, Object returnType, Object[] argTypes, String[] argNames)
      Constructor.
      Parameters:
      enhancer - ClassEnhancer
      name - Name of method
      access - Access type
      returnType - Return type
      argTypes - Argument types
      argNames - Argument names
    • WriteObject

      public WriteObject(ClassEnhancer enhancer, String name, int access, Object returnType, Object[] argTypes, String[] argNames, String[] exceptions)
      Constructor.
      Parameters:
      enhancer - ClassEnhancer
      name - Name of method
      access - Access type
      returnType - Return type
      argTypes - Argument types
      argNames - Argument names
      exceptions - Exceptions that are thrown
  • Method Details