/** * Creates a new complete constructor {@code AForIndexStm} 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 var_ the {@link ILexNameToken} node for the {@code var} child of this {@link AForIndexStm} node * @param from_ the {@link PExp} node for the {@code from} child of this {@link AForIndexStm} node * @param to_ the {@link PExp} node for the {@code to} child of this {@link AForIndexStm} node * @param by_ the {@link PExp} node for the {@code by} child of this {@link AForIndexStm} node * @param statement_ the {@link PStm} node for the {@code statement} child of this {@link AForIndexStm} node */ public AForIndexStm(ILexLocation location_, PType type_, ILexNameToken var_, PExp from_, PExp to_, PExp by_, PStm statement_) { super(location_,type_); this.setVar(var_); this.setFrom(from_); this.setTo(to_); this.setBy(by_); this.setStatement(statement_); }
/** * Creates a new tree field only constructor {@code AForIndexStm TAG=forIndex} 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 var_ the {@link ILexNameToken} node for the {@code var} child of this {@link AForIndexStm} node * @param from_ the {@link PExp} node for the {@code from} child of this {@link AForIndexStm} node * @param to_ the {@link PExp} node for the {@code to} child of this {@link AForIndexStm} node * @param by_ the {@link PExp} node for the {@code by} child of this {@link AForIndexStm} node * @param statement_ the {@link PStm} node for the {@code statement} child of this {@link AForIndexStm} node */ public AForIndexStm(ILexLocation location_, ILexNameToken var_, PExp from_, PExp to_, PExp by_, PStm statement_) { super(location_,null); this.setVar(var_); this.setFrom(from_); this.setTo(to_); this.setBy(by_); this.setStatement(statement_); }
public static AForIndexStm newAForIndexStm(ILexLocation token, ILexNameToken var, PExp from, PExp to, PExp by, PStm body) { AForIndexStm result = new AForIndexStm(); initStatement(result, token); result.setVar(var); result.setFrom(from); result.setTo(to); result.setBy(by); result.setStatement(body); return result; }