| Package | Description | 
|---|---|
| javassist | The Javassist Core API. | 
| Modifier and Type | Method and Description | 
|---|---|
| static CtConstructor | CtNewConstructor. copy(CtConstructor c,
    CtClass declaring,
    ClassMap map)Creates a copy of a constructor. | 
| static CtMethod | CtNewMethod. copy(CtMethod src,
    CtClass declaring,
    ClassMap map)Creates a copy of a method. | 
| static CtMethod | CtNewMethod. copy(CtMethod src,
    String name,
    CtClass declaring,
    ClassMap map)Creates a copy of a method with a new name. | 
| void | CtClass. replaceClassName(ClassMap map)Changes class names appearing in the class file according to the
 given  map. | 
| void | CtConstructor. setBody(CtConstructor src,
       ClassMap map)Copies a constructor body from another constructor. | 
| void | CtMethod. setBody(CtMethod src,
       ClassMap map)Copies a method body from another method. | 
| CtMethod | CtConstructor. toMethod(String name,
        CtClass declaring,
        ClassMap map)Makes a copy of this constructor and converts it into a method. | 
| Constructor and Description | 
|---|
| CtConstructor(CtConstructor src,
             CtClass declaring,
             ClassMap map)Creates a copy of a  CtConstructorobject. | 
| CtMethod(CtMethod src,
        CtClass declaring,
        ClassMap map)Creates a copy of a  CtMethodobject. | 
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.