public static ATuplePattern newATuplePattern(ILexLocation location, List<PPattern> list) { ATuplePattern result = new ATuplePattern(); initPattern(result, location); result.setPlist(list); return result; }
/** * Returns a deep clone of this {@link ATuplePattern} node. * @return a deep clone of this {@link ATuplePattern} node */ public ATuplePattern clone() { return new ATuplePattern( _location, cloneList(_definitions), _resolved, cloneList(_plist) ); }
/** * Creates a deep clone of this {@link ATuplePattern} 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 ATuplePattern} node */ public ATuplePattern clone(Map<INode,INode> oldToNewMap) { ATuplePattern node = new ATuplePattern( _location, cloneList(_definitions, oldToNewMap), _resolved, cloneList(_plist, oldToNewMap) ); oldToNewMap.put(this, node); return node; }