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