| Package | Description |
|---|---|
| javassist |
The Javassist Core API.
|
| javassist.bytecode |
Bytecode-level API.
|
| javassist.expr |
This package contains the classes for modifying a method body.
|
| Modifier and Type | Method and Description |
|---|---|
MethodInfo |
CtBehavior.getMethodInfo()
Returns the MethodInfo representing this method/constructor in the
class file.
|
MethodInfo |
CtBehavior.getMethodInfo2()
Returns the MethodInfo representing the method/constructor in the
class file (read only).
|
| Modifier and Type | Method and Description |
|---|---|
MethodInfo |
ClassFile.getMethod(java.lang.String name)
Returns the method with the specified name.
|
MethodInfo |
ClassFile.getStaticInitializer()
Returns a static initializer (class initializer), or null if it does not
exist.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClassFile.addMethod(MethodInfo minfo)
Appends a method to the class.
|
| Constructor and Description |
|---|
MethodInfo(ConstPool cp,
java.lang.String methodname,
MethodInfo src,
java.util.Map classnameMap)
Constructs a copy of
method_info structure. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExprEditor.doit(CtClass clazz,
MethodInfo minfo)
Undocumented method.
|
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.