Package | Description |
---|---|
javassist |
The Javassist Core API.
|
javassist.bytecode |
Bytecode-level API.
|
javassist.bytecode.analysis |
Bytecode Analysis API.
|
javassist.expr |
This package contains the classes for modifying a method body.
|
Modifier and Type | Method | 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 | Description |
---|---|---|
static CtMethod |
CtMethod.make(MethodInfo minfo,
CtClass declaring) |
Creates a method from a
MethodInfo object. |
Modifier and Type | Method | 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 | Description |
---|---|---|
java.util.List<MethodInfo> |
ClassFile.getMethods() |
Returns all the methods declared in the class.
|
Modifier and Type | Method | Description |
---|---|---|
void |
ClassFile.addMethod(MethodInfo minfo) |
Appends a method to the class.
|
void |
ClassFile.addMethod2(MethodInfo minfo) |
Just appends a method to the class.
|
Constructor | Description |
---|---|
BadBytecode(MethodInfo minfo,
java.lang.Throwable cause) |
|
MethodInfo(ConstPool cp,
java.lang.String methodname,
MethodInfo src,
java.util.Map<java.lang.String,java.lang.String> classnameMap) |
Constructs a copy of
method_info structure. |
Modifier and Type | Method | Description |
---|---|---|
Frame[] |
Analyzer.analyze(CtClass clazz,
MethodInfo method) |
Performs data-flow analysis on a method and returns an array, indexed by
instruction position, containing the starting frame state of all reachable
instructions.
|
void |
Executor.execute(MethodInfo method,
int pos,
CodeIterator iter,
Frame frame,
Subroutine subroutine) |
Execute the instruction, modeling the effects on the specified frame and subroutine.
|
Subroutine[] |
SubroutineScanner.scan(MethodInfo method) |
Constructor | Description |
---|---|
ControlFlow(CtClass ctclazz,
MethodInfo minfo) |
Constructs a control-flow analyzer.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
ExprEditor.doit(CtClass clazz,
MethodInfo minfo) |
Undocumented method.
|
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.