Esempio n. 1
0
 /**
  * Recursively adds the node and its descendants to the specified list with the specified name.
  *
  * @param nodes node list
  * @param nm name id
  */
 public void addDesc(final ArrayList<PathNode> nodes, final int nm) {
   if (kind == Data.ELEM && nm == name) nodes.add(this);
   for (final PathNode child : children) child.addDesc(nodes, nm);
 }
Esempio n. 2
0
 /**
  * Recursively adds the node and its descendants to the specified list.
  *
  * @param nodes node list
  */
 void addDesc(final ArrayList<PathNode> nodes) {
   nodes.add(this);
   for (final PathNode child : children) child.addDesc(nodes);
 }