Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

byte buddy - Invoking a standalone method from bytebuddy based java agent

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...