Пример #1
0
  private StringBuilder appendName(StringBuilder res) {
    if (parent != null) {
      parent.appendName(res);
      res.append('.');
    }

    res.append(name);
    return res;
  }
Пример #2
0
  private PropertyNode<?>[] makePath(int depth) {
    if (parent == null) {
      PropertyNode<?>[] path = new PropertyNode[depth + 1];
      path[0] = this;
      return path;
    }

    PropertyNode<?>[] path = parent.makePath(depth + 1);
    path[path.length - depth - 1] = this;
    return path;
  }
Пример #3
0
 void addChild(PropertyNode<?> n) {
   children.add(n);
   n.parent = this;
 }