When I have a class like this:
public class Test {
public String injectVariable;
void test() {
String name = "code";
}
}
How can I use ASM to inject code to the test
method and get the local variable name
?
public class Test {
public String injectVariable;
void test() {
String name = "code";
this.injectVariable = name;
}
}