public class Clone extends ClassMethod
public Object clone() throws CloneNotSupportedException { MyClass copy = (MyClass) super.clone(); copy.dnFlags = (byte) 0; copy.dnStateManager = null; return copy; }
access, argNames, argTypes, enhancer, exceptions, methodName, returnType, visitor
Constructor and Description |
---|
Clone(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Method to add the contents of the method.
|
static Clone |
getInstance(ClassEnhancer enhancer) |
close, equals, getAccess, getClassEnhancer, getDescriptor, getMethodAdditionMessage, getName, getNamer, hashCode, initialise, initialise
public Clone(ClassEnhancer enhancer, String name, int access, Object returnType, Object[] argTypes, String[] argNames, String[] exceptions)
enhancer
- ClassEnhancername
- Name of methodaccess
- Access typereturnType
- Return typeargTypes
- Argument typesargNames
- Argument namesexceptions
- Any exceptions thrownpublic static Clone getInstance(ClassEnhancer enhancer)
public void execute()
execute
in class ClassMethod
Copyright © 2020. All rights reserved.