/** * Returns a deep clone of this {@link AOperationExport} node. * @return a deep clone of this {@link AOperationExport} node */ public AOperationExport clone() { return new AOperationExport( _location, cloneList(_definition), cloneList(_nameList), _exportType ); }
/** * Creates a deep clone of this {@link AOperationExport} 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 AOperationExport} node */ public AOperationExport clone(Map<INode,INode> oldToNewMap) { AOperationExport node = new AOperationExport( _location, cloneList(_definition, oldToNewMap), cloneList(_nameList, oldToNewMap), _exportType ); oldToNewMap.put(this, node); return node; }
public static AOperationExport newAOperationExport(ILexLocation location, List<ILexNameToken> nameList, PType type) { AOperationExport result = new AOperationExport(); result.setLocation(location); result.setNameList(nameList); result.setExportType(type); return result; }