com.appland.appmap.transform.annotations.HookBinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appmap-agent Show documentation
Show all versions of appmap-agent Show documentation
Inspect and record the execution of Java for use with App Land
package com.appland.appmap.transform.annotations;
import com.appland.appmap.output.v1.Parameters;
import javassist.CtBehavior;
/**
* Represents the relationship between a hook and a behavior to be transformed.
*/
public class HookBinding {
private final Hook hook;
private final CtBehavior targetBehavior;
private final Parameters targetParameters;
public HookBinding(Hook hook, CtBehavior targetBehavior, Integer behaviorOrdinal) {
this.hook = hook;
this.targetBehavior = targetBehavior;
this.targetParameters = new Parameters(this.targetBehavior);
}
public Hook getHook() {
return this.hook;
}
public CtBehavior getTargetBehavior() {
return this.targetBehavior;
}
public Parameters getTargetParameters() {
return this.targetParameters;
}
public String toString() {
return hook + " " + targetBehavior.getLongName();
}
}