/** * Returns a deep clone of this {@link AAtomicStm} node. * @return a deep clone of this {@link AAtomicStm} node */ public AAtomicStm clone() { return new AAtomicStm( _location, _type, cloneList(_assignments), _statedef ); }
/** * Creates a deep clone of this {@link AAtomicStm} 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 AAtomicStm} node */ public AAtomicStm clone(Map<INode,INode> oldToNewMap) { AAtomicStm node = new AAtomicStm( _location, _type, cloneList(_assignments, oldToNewMap), _statedef ); oldToNewMap.put(this, node); return node; }
public static AAtomicStm newAAtomicStm(ILexLocation token, List<AAssignmentStm> assignments) { AAtomicStm result = new AAtomicStm(); initStatement(result, token); result.setAssignments(assignments); return result; }