public void apply ( Traversal order , final Operation operation , final Type type ) { apply ( order , new Operation ( ) { @ Override public void apply ( PlanNode node ) { if ( node . getType ( ) == type ) operation . apply ( node ) ; } } ) ; }
Walk the plan tree starting in the specified traversal order and apply the supplied operation to every plan node with a type that matches the given type .