/** * Determines the index of the given node based on its parent node. * * @param node the current node * @param parent the parent node * @param nodeName the name of the current node * @param handler the node handler * @param <T> the type of the nodes to be dealt with * @return the index of this node */ private <T> int determineIndex(final T node, final T parent, final String nodeName, final NodeHandler<T> handler) { return findChildNodesByName(handler, parent, nodeName).indexOf(node); }
findChildNodesByName(handler, node, keyPart).get(idx), handler);
if (keyPart.isPropertyKey()) processSubNodes(keyPart, findChildNodesByName(handler, node, key), results, handler);