/** * Returns a deep clone of this {@link ASetBind} node. * @return a deep clone of this {@link ASetBind} node */ public ASetBind clone() { return new ASetBind( _location, _pattern, _set ); }
/** * Creates a deep clone of this {@link ASetBind} 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 ASetBind} node */ public ASetBind clone(Map<INode,INode> oldToNewMap) { ASetBind node = new ASetBind( _location, _pattern, _set ); oldToNewMap.put(this, node); return node; }
public static ASetBind newASetBind(PPattern pattern, PExp readExpression) { ASetBind result = new ASetBind(); result.setLocation(pattern.getLocation()); result.setPattern(pattern); result.setSet(readExpression); return result; }