Lets say there is a method
public int getSize() {
return 3;
}
No other method calls this method in the java code.
I have written a java agent using bytebuddy, but AFAIK it only gives the capability to intercept a method call. Hence i can not intercept the method and capture the return value.
From my java agent, I want to scan all the methods with a annotation and call them. what are the ways to do this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…