/** * Creates a deep clone of this {@link ALetBeStStm} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link ALetBeStStm} node */ public ALetBeStStm clone(Map<INode,INode> oldToNewMap) { ALetBeStStm node = new ALetBeStStm( _location, _type, cloneNode(_bind, oldToNewMap), cloneNode(_suchThat, oldToNewMap), cloneNode(_statement, oldToNewMap), _def ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ALetBeStStm} node. * @return a deep clone of this {@link ALetBeStStm} node */ public ALetBeStStm clone() { return new ALetBeStStm( _location, _type, cloneNode(_bind), cloneNode(_suchThat), cloneNode(_statement), _def ); }
public static ALetBeStStm newALetBeStStm(ILexLocation token, PMultipleBind bind, PExp stexp, PStm statement) { ALetBeStStm result = new ALetBeStStm(); initStatement(result, token); result.setBind(bind); result.setSuchThat(stexp); result.setStatement(statement); return result; }