Пример #1
0
  private void expand(ScopeNode node, String[] parts, int index) {
    List<ScopeNode> children = node.getNodes();
    String match = parts[index];

    for (ScopeNode child : children) {
      String name = child.getName();

      if (name.equals(match)) {
        expand(child, parts, index + 1);
        break;
      }
    }
  }