Package org.jetbrains.mps.openapi.model
Interface SNodeReference
-
public interface SNodeReference
Represents a unique global reference to a node. SNodeReferences are the only recommended way to keep references to nodes across subsequent read or write actions. While direct memory references get obsolete once an action finishes, SNodeReferences will consistently retrieve the same node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SModelReference
getModelReference()
SNodeId
getNodeId()
SNode
resolve(SRepository repo)
Find actual instance of the node represented by this pointer.
-
-
-
Method Detail
-
resolve
@Nullable SNode resolve(SRepository repo)
Find actual instance of the node represented by this pointer.- Returns:
- node if known in the repository, or
null
-
getModelReference
@Nullable SModelReference getModelReference()
- Returns:
- pointer to the node's model, if known, or
null
-
-