Exemplo n.º 1
0
  public ParseNode insertChild(ParseNode child) {
    if (child == null) {
      throw new NullPointerException("Can't add null node to parse tree");
    }

    children.insertElementAt(child, 0);
    child.setParent(this);
    return child;
  }