I have a class which I am Injecting code into which looks like this:
public class Example {
public void MethodOne() {
doesStuff();
methodTwo();
}
private void MethodTwo(){...}
and I want to Inject code like this:
...
@Inject(method="MethodOne"...)
public void InjectMethodOne(CallbackInfo info) {
if(conditionMet) {
doesStuffDifferently();
MethodTwo(); //Can't access this since its private and I don't have the object to use it on
info.cancel()
} else return; //Resume the code normally
}