/** * Returns a deep clone of this {@link ANonDeterministicSimpleBlockStm} node. * @return a deep clone of this {@link ANonDeterministicSimpleBlockStm} node */ public ANonDeterministicSimpleBlockStm clone() { return new ANonDeterministicSimpleBlockStm( _location, _type, cloneList(_statements) ); }
/** * Creates a deep clone of this {@link ANonDeterministicSimpleBlockStm} 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 ANonDeterministicSimpleBlockStm} node */ public ANonDeterministicSimpleBlockStm clone(Map<INode,INode> oldToNewMap) { ANonDeterministicSimpleBlockStm node = new ANonDeterministicSimpleBlockStm( _location, _type, cloneList(_statements, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
public static ANonDeterministicSimpleBlockStm newANonDeterministicSimpleBlockStm( ILexLocation token) { ANonDeterministicSimpleBlockStm result = new ANonDeterministicSimpleBlockStm(); initStatement(result, token); result.setStatements(new Vector<PStm>()); return result; }