Package com.oracle.truffle.api
Interface ReplaceObserver
public interface ReplaceObserver
An observer that is notified whenever a child node is replaced. Note this is not called if
the RootNode does not have a CallTarget yet.
- Since:
- 0.8 or earlier
-
Method Summary
Modifier and TypeMethodDescriptionboolean
nodeReplaced
(Node oldNode, Node newNode, CharSequence reason) Returnstrue
if the event is consumed and no parent nodes should be notified by for replaces.
-
Method Details
-
nodeReplaced
Returnstrue
if the event is consumed and no parent nodes should be notified by for replaces. Returnsfalse
if the parentNode
orCallTarget
should get notified.- Since:
- 0.8 or earlier
-