Package jetbrains.mps.smodel.nodeidmap
Class MigratingJavaStubRefsNodeIdMap
- java.lang.Object
 - 
- jetbrains.mps.smodel.nodeidmap.MigratingJavaStubRefsNodeIdMap
 
 
- 
- All Implemented Interfaces:
 INodeIdToNodeMap
public final class MigratingJavaStubRefsNodeIdMap extends Object implements INodeIdToNodeMap
if not stub id everything works the same if stub id then we have the following: The stub method node is created with StringBasedIdForJavaStubMethods with the long (with return type) string inside. This id is not used anywhere else. In the method #put we have this node added to the two maps simultaneously: #myStringBasedIds and #myFallbackMap. Notice that the string keys in the string ids maps are written without prefixes. The #get or any other requesting method might receive: 0. non java stub method id => everything is the same 1. The foreign id of <=191.eap7 style (with return method stub id) => the node from the fallback map (#myFallbackForJavaStubMethodRefsMap) will be returned 2. The StringBasedIdForJavaStubMethods id of 191.eap7 style (with return method stub id) => the node from the fallback map will be returned 3. The StringBasedIdForJavaStubMethods id of >=191.eap8 style (with return method stub id) => the node from the fallback map will be returned 4. The foreign id of >=191.eap8 style (without return method stub id) => the node from the default map (#myStringBasedIds) will be returned 
- 
- 
Constructor Summary
Constructors Constructor Description MigratingJavaStubRefsNodeIdMap() 
 - 
 
- 
- 
Method Detail
- 
size
public int size()
- Specified by:
 sizein interfaceINodeIdToNodeMap
 
- 
get
public SNode get(SNodeId key)
- Specified by:
 getin interfaceINodeIdToNodeMap
 
- 
put
public SNode put(SNodeId key, SNode value)
- Specified by:
 putin interfaceINodeIdToNodeMap
 
- 
containsKey
public boolean containsKey(SNodeId key)
- Specified by:
 containsKeyin interfaceINodeIdToNodeMap
 
- 
remove
public SNode remove(SNodeId key)
- Specified by:
 removein interfaceINodeIdToNodeMap
 
- 
values
public Iterable<SNode> values()
- Specified by:
 valuesin interfaceINodeIdToNodeMap
 
 - 
 
 -