public class JavassistHelper
extends java.lang.Object
Constructor and Description |
---|
JavassistHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getSignature(javassist.CtBehavior method)
Return javassist source snippet which lists all the parameters and their
values.
|
private static boolean |
methodReturnsValue(javassist.CtBehavior method)
determine if the given method returns a value, and return true if so.
|
(package private) static java.lang.String |
parameterNameFor(javassist.CtBehavior method,
javassist.bytecode.LocalVariableAttribute locals,
int i)
Determine the name of parameter with index i in the given method.
|
static java.lang.String |
returnValue(javassist.CtBehavior method)
Create a javassist source snippet which either is empty (for anything
which does not return a value) or a explanatory text around the $_
javassist return value variable.
|
public static java.lang.String returnValue(javassist.CtBehavior method) throws javassist.NotFoundException
method
- descriptor of methodjavassist.NotFoundException
private static boolean methodReturnsValue(javassist.CtBehavior method) throws javassist.NotFoundException
method
- javassist.NotFoundException
public static java.lang.String getSignature(javassist.CtBehavior method) throws javassist.NotFoundException
method
- javassist.NotFoundException
static java.lang.String parameterNameFor(javassist.CtBehavior method, javassist.bytecode.LocalVariableAttribute locals, int i)
method
- locals
- i
-