Package jetbrains.mps.smodel
Class CopyUtil
- java.lang.Object
 - 
- jetbrains.mps.smodel.CopyUtil
 
 
- 
public final class CopyUtil extends Object
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddReferences(SNode root, Map<SNode,SNode> mapping, boolean forceCloneRefs)static List<SNode>copy(List<SNode> nodes)static List<SNode>copy(List<SNode> nodes, Map<SNode,SNode> mapping)static SNodecopy(SNode node)static SNodecopy(SNode node, boolean copyAttributes)static SNodecopy(SNode node, Map<SNode,SNode> mapping, boolean copyAttributes)static List<SNode>copyAndPreserveId(List<SNode> nodes, Map<SNode,SNode> mapping)static SNodecopyAndPreserveId(SNode node)static SNodecopyAndPreserveId(SNode node, boolean cloneRefs)static SModelcopyModel(SModel model)static voidcopyModelContent(SModel from, SModel to)static voidcopyModelContentAndPreserveIds(SModel from, SModel to)static voidcopyModelContentAndUpdateCrossRootReferences(SModel from, SModel to)static voidcopyModelProperties(SModel from, SModel to)static voidcopyProperties(SNode from, SNode to)static voidcopyUserObjects(SNode from, SNode to) 
 - 
 
- 
- 
Method Detail
- 
copyModelContentAndUpdateCrossRootReferences
public static void copyModelContentAndUpdateCrossRootReferences(SModel from, SModel to)
 
- 
copyModelContentAndPreserveIds
public static void copyModelContentAndPreserveIds(SModel from, SModel to)
 
- 
copyAndPreserveId
public static List<SNode> copyAndPreserveId(List<SNode> nodes, Map<SNode,SNode> mapping)
 
 - 
 
 -