Package | Description |
---|---|
javassist |
The Javassist Core API.
|
Modifier and Type | Field and Description |
---|---|
private ClassMap |
ClassMap.parent |
Modifier and Type | Method and Description |
---|---|
(package private) void |
CtBehavior.copy(CtBehavior src,
boolean isCons,
ClassMap map) |
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,
java.lang.String name,
CtClass declaring,
ClassMap map)
Creates a copy of a method with a new name.
|
void |
CtClassType.replaceClassName(ClassMap classnames) |
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.
|
(package private) static void |
CtBehavior.setBody0(CtClass srcClass,
MethodInfo srcInfo,
CtClass destClass,
MethodInfo destInfo,
ClassMap map) |
CtMethod |
CtConstructor.toMethod(java.lang.String name,
CtClass declaring,
ClassMap map)
Makes a copy of this constructor and converts it into a method.
|
Constructor and Description |
---|
ClassMap(ClassMap map) |
CtConstructor(CtConstructor src,
CtClass declaring,
ClassMap map)
Creates a copy of a
CtConstructor object. |
CtMethod(CtMethod src,
CtClass declaring,
ClassMap map)
Creates a copy of a
CtMethod object. |