org.jpox.enhancer.asm.method
Class JdoNewInstance1
java.lang.Object
org.jpox.enhancer.ClassMethod
org.jpox.enhancer.asm.ASMClassMethod
org.jpox.enhancer.asm.method.JdoNewInstance1
public class JdoNewInstance1
- extends ASMClassMethod
Method to generate the method "jdoNewInstance" using ASM.
public PersistenceCapable jdoNewInstance(StateManager sm)
{
MyClass result = new MyClass();
result.jdoFlags = (byte) 1;
result.jdoStateManager = sm;
return result;
}
and throw an exception when the class is abstract
- Version:
- $Revision: 1.6 $
|
Constructor Summary |
JdoNewInstance1(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JdoNewInstance1
public JdoNewInstance1(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames)
- Constructor.
- Parameters:
enhancer - ClassEnhancername - Name of methodaccess - Access typereturnType - Return typeargTypes - Argument typesargNames - Argument names
getInstance
public static JdoNewInstance1 getInstance(ClassEnhancer enhancer)
execute
public void execute()
- Method to add the contents of the class method.
- Specified by:
execute in class ClassMethod
Copyright © -2008 . All Rights Reserved.