public void onNodeInserted(RootNode rootNode, Node tree) { // for input filters to be updated correctly we need to // start traversing with the parent instrumentable node. Node parentInstrumentable = tree; while (parentInstrumentable != null && parentInstrumentable.getParent() != null) { parentInstrumentable = parentInstrumentable.getParent(); if (InstrumentationHandler.isInstrumentableNode(parentInstrumentable, parentInstrumentable.getSourceSection())) { break; } } assert parentInstrumentable != null; if (!sourceSectionBindings.isEmpty()) { visitRoot(rootNode, parentInstrumentable, new NotifyLoadedListenerVisitor(sourceSectionBindings), true); } if (!executionBindings.isEmpty()) { visitRoot(rootNode, parentInstrumentable, new InsertWrappersVisitor(executionBindings), true); } }
public void onNodeInserted(RootNode rootNode, Node tree) { // for input filters to be updated correctly we need to // start traversing with the parent instrumentable node. Node parentInstrumentable = tree; while (parentInstrumentable != null && parentInstrumentable.getParent() != null) { parentInstrumentable = parentInstrumentable.getParent(); if (InstrumentationHandler.isInstrumentableNode(parentInstrumentable, parentInstrumentable.getSourceSection())) { break; } } assert parentInstrumentable != null; if (!sourceSectionBindings.isEmpty()) { visitRoot(rootNode, parentInstrumentable, new NotifyLoadedListenerVisitor(sourceSectionBindings), true); } if (!executionBindings.isEmpty()) { visitRoot(rootNode, parentInstrumentable, new InsertWrappersVisitor(executionBindings), true); } }
visitRoot(root, root, new InsertWrappersVisitor(executionBindings), false);
visitRoot(root, root, new InsertWrappersVisitor(executionBindings), false);