Пример #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;
 }
Пример #3
0
 /** Set the cast type of the expression. */
 public Cast castType(TypeNode castType) {
   Cast_c n = (Cast_c) copy();
   n.castType = castType;
   return n;
 }