Esempio n. 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;
  }
Esempio n. 2
0
 /** Set the cast type of the expression. */
 public Cast castType(TypeNode castType) {
   Cast_c n = (Cast_c) copy();
   n.castType = castType;
   return n;
 }