Package jetbrains.mps.smodel
Class SNodePointer
- java.lang.Object
 - 
- jetbrains.mps.smodel.SNodePointer
 
 
- 
- All Implemented Interfaces:
 SNodeReference
public class SNodePointer extends Object implements SNodeReference
 
- 
- 
Constructor Summary
Constructors Constructor Description SNodePointer(String modelUID, String nodeId)SNodePointer(SModelReference modelReference, SNodeId nodeId)SNodePointer(SNode node) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SNodeReferencedeserialize(String from)booleanequals(Object o)SModelReferencegetModelReference()SNodeIdgetNodeId()inthashCode()SNoderesolve(SRepository repo)Find actual instance of the node represented by this pointer.static Stringserialize(SNodeReference p)StringtoString() 
 - 
 
- 
- 
Method Detail
- 
resolve
@Nullable public SNode resolve(SRepository repo)
Description copied from interface:SNodeReferenceFind actual instance of the node represented by this pointer.- Specified by:
 resolvein interfaceSNodeReference- Returns:
 - node if known in the repository, or 
null 
 
- 
getModelReference
@Nullable public SModelReference getModelReference()
- Specified by:
 getModelReferencein interfaceSNodeReference- Returns:
 - pointer to the node's model, if known, or 
null 
 
- 
serialize
public static String serialize(SNodeReference p)
 
- 
deserialize
public static SNodeReference deserialize(@NotNull String from)
 
- 
getNodeId
@Nullable public SNodeId getNodeId()
- Specified by:
 getNodeIdin interfaceSNodeReference- Returns:
 - identity of the node, if known, or 
null 
 
 - 
 
 -