Exemplo n.º 1
0
  public void setLhs(PExpression node) {
    if (this._lhs_ != null) {
      this._lhs_.parent(null);
    }

    if (node != null) {
      if (node.parent() != null) {
        node.parent().removeChild(node);
      }

      node.parent(this);
    }

    this._lhs_ = node;
  }
Exemplo n.º 2
0
  public void setRight(PExpression node) {
    if (this._right_ != null) {
      this._right_.parent(null);
    }

    if (node != null) {
      if (node.parent() != null) {
        node.parent().removeChild(node);
      }

      node.parent(this);
    }

    this._right_ = node;
  }
Exemplo n.º 3
0
  public void setValue(PExpression node) {
    if (this._value_ != null) {
      this._value_.parent(null);
    }

    if (node != null) {
      if (node.parent() != null) {
        node.parent().removeChild(node);
      }

      node.parent(this);
    }

    this._value_ = node;
  }