How can I get values of method parameter

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.

0
1 comment

There is no real generic API to inspect all possible programs and their execution in the way you want to monitor it.

0

Please sign in to leave a comment.