/** * Creates a deep clone of this {@link AMapCompMapExp} 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 AMapCompMapExp} node */ public AMapCompMapExp clone(Map<INode,INode> oldToNewMap) { AMapCompMapExp node = new AMapCompMapExp( _type, _location, cloneNode(_first, oldToNewMap), cloneList(_bindings, oldToNewMap), cloneNode(_predicate, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AMapCompMapExp} node. * @return a deep clone of this {@link AMapCompMapExp} node */ public AMapCompMapExp clone() { return new AMapCompMapExp( _type, _location, cloneNode(_first), cloneList(_bindings), cloneNode(_predicate) ); }
public static AMapCompMapExp newAMapCompMapExp(ILexLocation start, AMapletExp first, List<PMultipleBind> bindings, PExp predicate) { AMapCompMapExp result = new AMapCompMapExp();// start, first, bindings, // predicate); initExpression(result, start); result.setFirst(first); result.setBindings(bindings); result.setPredicate(predicate); return result; }