org.datanucleus.enhancer.asm.method
Class WriteObject
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.asm.ASMClassMethod
org.datanucleus.enhancer.asm.method.WriteObject
public class WriteObject
- extends ASMClassMethod
Method to generate the method "writeObject" using ASM.
private void writeObject(ObjectOutputStream out)
throws IOException
{
jdoPreSerialize();
out.defaultWriteObject();
}
|
Constructor Summary |
WriteObject(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
Constructor. |
WriteObject(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
Constructor. |
WriteObject
public WriteObject(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
- Constructor.
- Parameters:
enhancer - ClassEnhancername - Name of methodaccess - Access typereturnType - Return typeargTypes - Argument typesargNames - Argument names
WriteObject
public WriteObject(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
- Constructor.
- Parameters:
enhancer - ClassEnhancername - Name of methodaccess - Access typereturnType - Return typeargTypes - Argument typesargNames - Argument namesexceptions - Exceptions that are thrown
getInstance
public static WriteObject getInstance(ClassEnhancer enhancer)
execute
public void execute()
- Method to add the contents of the class method.
- Specified by:
execute in class ClassMethod
Copyright © 2012. All Rights Reserved.