How can I get values of method parameter Follow
private static final String[] TEST_DATA = new String[]{"a", "b", "c"};
private void printAll() {
for (String s : TEST_DATA) {
print(s);
}
}
@Description("Print string")
private void print(String s) {
System.out.println(s);
}
I have a plugin to call for printAll and grab all the Description values for child methods, but in this case I need to display:
Print string a
Print string b
Print string c
Can you please advise is it possible? If yes, how can I do it?
Thank you in advance.
Please sign in to leave a comment.
There is no real generic API to inspect all possible programs and their execution in the way you want to monitor it.