/** * Creates a new tree field only constructor {@code AForLoopStmIR TAG=forLoop} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param init_ the {@link AVarDeclIR} node for the {@code init} child of this {@link AForLoopStmIR} node * @param cond_ the {@link SExpIR} node for the {@code cond} child of this {@link AForLoopStmIR} node * @param inc_ the {@link SExpIR} node for the {@code inc} child of this {@link AForLoopStmIR} node * @param body_ the {@link SStmIR} node for the {@code body} child of this {@link AForLoopStmIR} node */ public AForLoopStmIR(AVarDeclIR init_, SExpIR cond_, SExpIR inc_, SStmIR body_) { super(null,null,null); this.setInit(init_); this.setCond(cond_); this.setInc(inc_); this.setBody(body_); }
/** * Creates a new complete constructor {@code AForLoopStmIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param init_ the {@link AVarDeclIR} node for the {@code init} child of this {@link AForLoopStmIR} node * @param cond_ the {@link SExpIR} node for the {@code cond} child of this {@link AForLoopStmIR} node * @param inc_ the {@link SExpIR} node for the {@code inc} child of this {@link AForLoopStmIR} node * @param body_ the {@link SStmIR} node for the {@code body} child of this {@link AForLoopStmIR} node */ public AForLoopStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, AVarDeclIR init_, SExpIR cond_, SExpIR inc_, SStmIR body_) { super(sourceNode_,tag_,metaData_); this.setInit(init_); this.setCond(cond_); this.setInc(inc_); this.setBody(body_); }
forLoop.setInc(strategy.getForLoopInc(setVar, patterns, pattern));