com.appland.appmap.transform.annotations.BaseSystem 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 java.util.Map;
import com.appland.appmap.output.v1.Parameters;
import javassist.CtBehavior;
public abstract class BaseSystem implements ISystem {
private final CtBehavior hookBehavior;
public BaseSystem(CtBehavior hookBehavior) {
this.hookBehavior = hookBehavior;
}
public Boolean match(CtBehavior behavior, Map matchResult) {
return false;
}
public void mutateStaticParameters(CtBehavior behavior, Parameters params) {
}
public void mutateRuntimeParameters(HookBinding binding, Parameters runtimeParameters) {
}
protected CtBehavior getHookBehavior() {
return this.hookBehavior;
}
public Integer getHookPosition() {
return ISystem.HOOK_POSITION_DEFAULT;
}
public Integer getParameterPriority() {
return Integer.MAX_VALUE;
}
public Boolean validate(Hook hook) {
return true;
}
public Boolean validate(HookBinding binding) {
return true;
}
}