/** * 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; }
ITupleConsumerNode[] consumers = ((ITupleSourceNode)node).getTupleConsumers(); for(int j=0; j<consumers.length; j++)
ITupleConsumerNode[] consumers = ((ITupleSourceNode)node).getTupleConsumers(); for(int j=0; j<consumers.length; j++)
if(node instanceof ITupleSourceNode) INode[] subnodes = ((ITupleSourceNode)node).getTupleConsumers(); for(int i=0; i<subnodes.length; i++) nodes.add(subnodes[i]);
if(node instanceof ITupleSourceNode) INode[] subnodes = ((ITupleSourceNode)node).getTupleConsumers(); for(int i=0; i<subnodes.length; i++) nodes.add(subnodes[i]);
ITupleConsumerNode[] cons = tsn.getTupleConsumers(); for(int j=0; j<cons.length; j++)
ITupleConsumerNode[] cons = tsn.getTupleConsumers(); for(int j=0; j<cons.length; j++)
INode[] subs = ((ITupleSourceNode)node).getTupleConsumers(); for(int n=0; subs!=null && n<subs.length; n++)
Object[] nexts = ((ITupleSourceNode)node).getTupleConsumers(); for(int j=0; j<nexts.length; j++)
INode[] subs = ((ITupleSourceNode)node).getTupleConsumers(); for(int n=0; subs!=null && n<subs.length; n++)
ITupleConsumerNode[] cons = ((ITupleSourceNode)current).getTupleConsumers(); for(int j=0; cons!=null && j<cons.length; j++)
if(nodesharing) ITupleConsumerNode[] tcon = tsource.getTupleConsumers(); for(int i=0; ria==null && tcon!=null && i<tcon.length; i++)
if(nodesharing) ITupleConsumerNode[] tcon = tsource.getTupleConsumers(); for(int i=0; ria==null && tcon!=null && i<tcon.length; i++)
&& ((ITupleSourceNode)context.getLastBetaNode()).getTupleConsumers()==null &&!(context.getLastBetaNode() instanceof NotNode) && (((BetaNode)context.getLastBetaNode()).getTupleSource()==leftnode
&& ((ITupleSourceNode)context.getLastBetaNode()).getTupleConsumers()==null &&!(context.getLastBetaNode() instanceof NotNode) && (((BetaNode)context.getLastBetaNode()).getTupleSource()==leftnode
ITupleConsumerNode[] tcon = ((ITupleSourceNode)context.getLastAlphaNode()).getTupleConsumers(); for(int i=0; node==null && tcon!=null && i<tcon.length; i++) ITupleConsumerNode[] tcon = ((ITupleSourceNode)context.getLastBetaNode()).getTupleConsumers(); for(int i=0; node==null && tcon!=null && i<tcon.length; i++)
ITupleConsumerNode[] tcon = ((ITupleSourceNode)context.getLastAlphaNode()).getTupleConsumers(); for(int i=0; node==null && tcon!=null && i<tcon.length; i++) ITupleConsumerNode[] tcon = ((ITupleSourceNode)context.getLastBetaNode()).getTupleConsumers(); for(int i=0; node==null && tcon!=null && i<tcon.length; i++)
ITupleConsumerNode[] tcon = ((ITupleSourceNode)context.getLastBetaNode()).getTupleConsumers(); for(int i=0; node==null && tcon!=null && i<tcon.length; i++)
ITupleConsumerNode[] tcon = ((ITupleSourceNode)context.getLastBetaNode()).getTupleConsumers(); for(int i=0; node==null && tcon!=null && i<tcon.length; i++)