/** * Returns a deep clone of this {@link AForPatternBindStm} node. * @return a deep clone of this {@link AForPatternBindStm} node */ public AForPatternBindStm clone() { return new AForPatternBindStm( _location, _type, cloneNode(_patternBind), _reverse, cloneNode(_exp), cloneNode(_statement), _seqType ); }
/** * Creates a deep clone of this {@link AForPatternBindStm} 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 AForPatternBindStm} node */ public AForPatternBindStm clone(Map<INode,INode> oldToNewMap) { AForPatternBindStm node = new AForPatternBindStm( _location, _type, cloneNode(_patternBind, oldToNewMap), _reverse, cloneNode(_exp, oldToNewMap), cloneNode(_statement, oldToNewMap), _seqType ); oldToNewMap.put(this, node); return node; }