/** * Creates a new tree field only constructor {@code ADurationStm TAG=duration} 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 duration_ the {@link PExp} node for the {@code duration} child of this {@link ADurationStm} node * @param statement_ the {@link PStm} node for the {@code statement} child of this {@link ADurationStm} node */ public ADurationStm(ILexLocation location_, PExp duration_, PStm statement_) { super(location_,null); this.setDuration(duration_); this.setStatement(statement_); this.setStep(0L); }
/** * Creates a new complete constructor {@code ADurationStm} 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 duration_ the {@link PExp} node for the {@code duration} child of this {@link ADurationStm} node * @param statement_ the {@link PStm} node for the {@code statement} child of this {@link ADurationStm} node * @param step_ the {@link Long} <b>graph</a> node for the {@code step} child of this {@link ADurationStm} node. * <i>The parent of this {@code step } will not be changed by adding it to this node.</i> */ public ADurationStm(ILexLocation location_, PType type_, PExp duration_, PStm statement_, Long step_) { super(location_,type_); this.setDuration(duration_); this.setStatement(statement_); this.setStep(step_); }
public static ADurationStm newADurationStm(ILexLocation location, PExp duration, PStm stmt) { ADurationStm result = new ADurationStm(); initStatement(result, location); result.setDuration(duration); result.setStatement(stmt); return result; }