com.oracle.truffle.api.instrumentation.test.InstrumentationUpdateNodeWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-instrument-test Show documentation
Show all versions of truffle-instrument-test Show documentation
Instrumentation tests including InstrumentationTestLanguage.
The newest version!
// CheckStyle: start generated
package com.oracle.truffle.api.instrumentation.test;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.instrumentation.InstrumentableFactory;
import com.oracle.truffle.api.instrumentation.ProbeNode;
import com.oracle.truffle.api.instrumentation.test.InstrumentationUpdateTest.InstrumentationUpdateNode;
import com.oracle.truffle.api.nodes.NodeCost;
import com.oracle.truffle.api.source.SourceSection;
@GeneratedBy(InstrumentationUpdateNode.class)
public final class InstrumentationUpdateNodeWrapper implements InstrumentableFactory {
@Override
public WrapperNode createWrapper(InstrumentationUpdateNode delegateNode, ProbeNode probeNode) {
return new InstrumentationUpdateNodeWrapper0(delegateNode.getSourceSection(), delegateNode, probeNode);
}
@GeneratedBy(InstrumentationUpdateNode.class)
private static final class InstrumentationUpdateNodeWrapper0 extends InstrumentationUpdateNode implements WrapperNode {
@Child private InstrumentationUpdateNode delegateNode;
@Child private ProbeNode probeNode;
private InstrumentationUpdateNodeWrapper0(SourceSection sourceSection, InstrumentationUpdateNode delegateNode, ProbeNode probeNode) {
super(sourceSection);
this.delegateNode = delegateNode;
this.probeNode = probeNode;
}
@Override
public InstrumentationUpdateNode getDelegateNode() {
return delegateNode;
}
@Override
public ProbeNode getProbeNode() {
return probeNode;
}
@Override
public NodeCost getCost() {
return NodeCost.NONE;
}
@Override
public void execute() {
try {
probeNode.onEnter(null);
delegateNode.execute();
probeNode.onReturnValue(null, null);
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy