Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ASTProber.java @ 22219:1c0f490984d5
Merge with f47b601edbc626dcfe8b3636933b4834c89f7779
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Wed, 16 Sep 2015 15:36:22 -0700 |
parents | dc83cc1f94f2 3aad794eec0e |
children | 20380d1d41f2 |
comparison
equal
deleted
inserted
replaced
22160:0599e2df6a9f | 22219:1c0f490984d5 |
---|---|
29 /** | 29 /** |
30 * Enables instrumentation by attaching {@linkplain Probe Probes} to some nodes in a (newly created, | 30 * Enables instrumentation by attaching {@linkplain Probe Probes} to some nodes in a (newly created, |
31 * not yet executed) AST. | 31 * not yet executed) AST. |
32 * | 32 * |
33 * @see Probe | 33 * @see Probe |
34 * @see Probe#addProbeListener(ProbeListener) | 34 * @see Instrumenter#addProbeListener(ProbeListener) |
35 */ | 35 */ |
36 public interface ASTProber { | 36 public interface ASTProber { |
37 | 37 |
38 /** | 38 /** |
39 * Walk the AST starting at a node and enable instrumentation at selected nodes by attaching | 39 * Walk the AST starting at a node and enable instrumentation at selected nodes by attaching |
40 * {@linkplain Probe Probes} to them. Ignore {@linkplain Node#isInstrumentable() | 40 * {@linkplain Probe Probes} to them. Ignore {@linkplain Node#isInstrumentable() |
41 * non-instrumentable} nodes. | 41 * non-instrumentable} nodes. |
42 */ | 42 */ |
43 void probeAST(Node node); | 43 void probeAST(Instrumenter instrumenter, Node node); |
44 | 44 |
45 } | 45 } |