/** * Returns the leaf call that is currently processed by the execution algorithm visiting the call * tree. * * @return See above. * @see CompositeBatchCall#getCurCall() */ BatchCall getCurCall() { return root.getCurCall(); }
/** * Adds a new child node to the root. The root node maintained by <code>BatchCallTree</code> is an * instance of {@link CompositeBatchCall}, so refer to that for the semantics of adding and the * resulting execution order. * * @param bc The child node. Mustn't be <code>null</code>. * @see CompositeBatchCall#add(BatchCall) */ protected void add(BatchCall bc) { root.add(bc); }
/** * Counts the actual calls. That is, this method counts all the leaf nodes in the tree. * * @return The count. */ int countCalls() { return root.countCalls(); }