Package jetbrains.mps.generator.impl
Class CloneUtil
- java.lang.Object
 - 
- jetbrains.mps.generator.impl.CloneUtil
 
 
- 
public class CloneUtil extends Object
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCloneUtil.Factorystatic classCloneUtil.RegularSModelFactory 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SNodeclone(SNode inputNode)voidcloneModel()voidcloneModelWithImports()Creates cloned model, each node in target model has the same nodeId that corresponding node in source model it allows to resolve internal references much fasterstatic DynamicReferencecreate(SNode outputNode, SModelReference targetModelRef, DynamicReference prototype)CloneUtiltraceOriginalInput()Record origin of copied node with TracingUtil 
 - 
 
- 
- 
Constructor Detail
- 
CloneUtil
public CloneUtil(SModel inputModel, SModel outputModel, CloneUtil.Factory factory)
 
 - 
 
- 
Method Detail
- 
traceOriginalInput
public CloneUtil traceOriginalInput()
Record origin of copied node with TracingUtil- Returns:
 thisfor convenience
 
- 
cloneModelWithImports
public void cloneModelWithImports()
Creates cloned model, each node in target model has the same nodeId that corresponding node in source model it allows to resolve internal references much faster 
- 
cloneModel
public void cloneModel()
 
- 
create
public static DynamicReference create(SNode outputNode, SModelReference targetModelRef, DynamicReference prototype)
 
 - 
 
 -