Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultStandardInstrumentListener.java @ 22230:3f2052afcb6d
Truffle/Instrumentation: rename the methods in the Instrument listener classes to use the "on" convention, e.g. onEnter(), add Javadoc
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Sun, 20 Sep 2015 16:48:50 -0700 |
parents | dc83cc1f94f2 |
children | 5e37933270b0 |
comparison
equal
deleted
inserted
replaced
22229:a4ac9f2ff2bf | 22230:3f2052afcb6d |
---|---|
33 * A listener for AST {@linkplain StandardInstrumentListener execution events} that provides a no-op | 33 * A listener for AST {@linkplain StandardInstrumentListener execution events} that provides a no-op |
34 * implementation of every event. | 34 * implementation of every event. |
35 */ | 35 */ |
36 public class DefaultStandardInstrumentListener implements StandardInstrumentListener { | 36 public class DefaultStandardInstrumentListener implements StandardInstrumentListener { |
37 | 37 |
38 public void enter(Probe probe, Node node, VirtualFrame vFrame) { | 38 public void onEnter(Probe probe, Node node, VirtualFrame vFrame) { |
39 } | 39 } |
40 | 40 |
41 public void returnVoid(Probe probe, Node node, VirtualFrame vFrame) { | 41 public void onReturnVoid(Probe probe, Node node, VirtualFrame vFrame) { |
42 } | 42 } |
43 | 43 |
44 public void returnValue(Probe probe, Node node, VirtualFrame vFrame, Object result) { | 44 public void onReturnValue(Probe probe, Node node, VirtualFrame vFrame, Object result) { |
45 } | 45 } |
46 | 46 |
47 public void returnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception) { | 47 public void onReturnExceptional(Probe probe, Node node, VirtualFrame vFrame, Exception exception) { |
48 } | 48 } |
49 | 49 |
50 } | 50 } |