/** * Count the number of children. * @param node The node. * @return The number of children. */ protected int getChildCount(INode node) { int ret = 0; if(node instanceof ITupleSourceNode) { ITupleSourceNode tsn = (ITupleSourceNode)node; ITupleConsumerNode[] cs = tsn.getTupleConsumers(); ret += cs==null? 0: cs.length; } if(node instanceof IObjectSourceNode) { IObjectSourceNode tsn = (IObjectSourceNode)node; IObjectConsumerNode[] cs = tsn.getObjectConsumers(); ret += cs==null? 0: cs.length; } return ret; }
/** * Count the number of children. * @param node The node. * @return The number of children. */ protected int getChildCount(INode node) { int ret = 0; if(node instanceof ITupleSourceNode) { ITupleSourceNode tsn = (ITupleSourceNode)node; ITupleConsumerNode[] cs = tsn.getTupleConsumers(); ret += cs==null? 0: cs.length; } if(node instanceof IObjectSourceNode) { IObjectSourceNode tsn = (IObjectSourceNode)node; IObjectConsumerNode[] cs = tsn.getObjectConsumers(); ret += cs==null? 0: cs.length; } return ret; }
if(node instanceof IObjectSourceNode) IObjectConsumerNode[] consumers = ((IObjectSourceNode)node).getObjectConsumers(); for(int j=0; j<consumers.length; j++)
if(node instanceof IObjectSourceNode) IObjectConsumerNode[] consumers = ((IObjectSourceNode)node).getObjectConsumers(); for(int j=0; j<consumers.length; j++)
INode[] subnodes = ((IObjectSourceNode)node).getObjectConsumers(); for(int i=0; i<subnodes.length; i++) nodes.add(subnodes[i]);
INode[] subnodes = ((IObjectSourceNode)node).getObjectConsumers(); for(int i=0; i<subnodes.length; i++) nodes.add(subnodes[i]);
IObjectConsumerNode[] cons = osn.getObjectConsumers(); for(int j=0; j<cons.length; j++)
IObjectConsumerNode[] cons = osn.getObjectConsumers(); for(int j=0; j<cons.length; j++)
if(node instanceof IObjectSourceNode) Object[] nexts = ((IObjectSourceNode)node).getObjectConsumers(); for(int j=0; j<nexts.length; j++)
IObjectConsumerNode[] cons = ((IObjectSourceNode)current).getObjectConsumers(); for(int j=0; cons!=null && j<cons.length; j++)
if(nodesharing) IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastAlphaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
if(nodesharing) IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastAlphaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
if(nodesharing) IObjectConsumerNode[] ocon = s.getObjectConsumers(); for(int i=0; lia==null && ocon!=null && i<ocon.length; i++)
if(nodesharing) IObjectConsumerNode[] ocon = s.getObjectConsumers(); for(int i=0; lia==null && ocon!=null && i<ocon.length; i++)
if(nodesharing) IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastAlphaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
if(nodesharing) IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastAlphaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastBetaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastBetaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastBetaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)
IObjectConsumerNode[] ocon = ((IObjectSourceNode)context.getLastBetaNode()).getObjectConsumers(); for(int i=0; node==null && ocon!=null && i<ocon.length; i++)