com.oracle.truffle.api.instrumentation.test.TestNode3Wrapper 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.InstrumentableTest.TestNode3;
import com.oracle.truffle.api.nodes.NodeCost;
@GeneratedBy(TestNode3.class)
public final class TestNode3Wrapper implements InstrumentableFactory {
@Override
public WrapperNode createWrapper(TestNode3 delegateNode, ProbeNode probeNode) {
return new TestNode3Wrapper0(delegateNode, delegateNode, probeNode);
}
@GeneratedBy(TestNode3.class)
private static final class TestNode3Wrapper0 extends TestNode3 implements WrapperNode {
@Child private TestNode3 delegateNode;
@Child private ProbeNode probeNode;
private TestNode3Wrapper0(TestNode3 sourceSection, TestNode3 delegateNode, ProbeNode probeNode) {
super(sourceSection);
this.delegateNode = delegateNode;
this.probeNode = probeNode;
}
@Override
public TestNode3 getDelegateNode() {
return delegateNode;
}
@Override
public ProbeNode getProbeNode() {
return probeNode;
}
@Override
public NodeCost getCost() {
return NodeCost.NONE;
}
@Override
public void execute1() {
try {
probeNode.onEnter(null);
delegateNode.execute1();
probeNode.onReturnValue(null, null);
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy