예제 #1
0
  /** Reconstruct the expression. */
  protected Cast_c reconstruct(TypeNode castType, Expr expr) {
    if (castType != this.castType || expr != this.expr) {
      Cast_c n = (Cast_c) copy();
      n.castType = castType;
      n.expr = expr;
      return n;
    }

    return this;
  }
예제 #2
0
 /** Set the expression being cast. */
 public Cast expr(Expr expr) {
   Cast_c n = (Cast_c) copy();
   n.expr = expr;
   return n;
 }