public List getChildrenAtNode(Node aNode) { List foundChildren = new ArrayList(); getChildrenAtNode(aNode, foundChildren); return foundChildren; }
public List getChildrenAtNode(Node aNode) { List foundChildren = new ArrayList(); getChildrenAtNode(aNode, foundChildren); return foundChildren; }
private void getChildrenAtNode(Node aNode, List foundTokens) { if (aNode.equals(node)) { foundTokens.add(this); } else if (children != null) { for (Iterator it = children.values().iterator(); it.hasNext();) { Token child = (Token) it.next(); child.getChildrenAtNode(aNode, foundTokens); } } }
private void getChildrenAtNode(Node aNode, List foundTokens) { if (aNode.equals(node)) { foundTokens.add(this); } else if (children != null) { for (Iterator it = children.values().iterator(); it.hasNext();) { Token child = (Token) it.next(); child.getChildrenAtNode(aNode, foundTokens); } } }