Package jetbrains.mps.java.stub
Class StubReferenceFactory
- java.lang.Object
 - 
- jetbrains.mps.java.stub.StubReferenceFactory
 
 
- 
- All Implemented Interfaces:
 ReferenceFactory
public final class StubReferenceFactory extends Object implements ReferenceFactory
Look up models with same name among all visible models for a given module. Has nothing to do with stubs except for the fact its only use is in java stub resolution mechanism. 
- 
- 
Constructor Summary
Constructors Constructor Description StubReferenceFactory(SModule module, SModel model) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SReferencecreate(SNode source, String pack, SNodeId targetNodeId, SReferenceLink role, String resolveInfo, SNodeId targetTopClassifier)For a given package name and id of target classifier(?), build a model reference (tailored for the given role in the source node)Collection<SModelReference>getImports() 
 - 
 
- 
- 
Method Detail
- 
create
@NotNull public SReference create(SNode source, String pack, SNodeId targetNodeId, SReferenceLink role, String resolveInfo, SNodeId targetTopClassifier)
Description copied from interface:ReferenceFactoryFor a given package name and id of target classifier(?), build a model reference (tailored for the given role in the source node)- Specified by:
 createin interfaceReferenceFactory- Parameters:
 source- origin of the linkpack- name of Java packagetargetNodeId- identifies classifier(?) we look uprole- role of the link to populateresolveInfo- additional information that descripes the linktargetTopClassifier- id of root classifier that holds target node (may be the same as targetNodeId). Hint value to pick best possible package and not to force complete model load. Since we load stub models in two steps, with roots available first, check for top classifier through SModel.getNode(SNodeId) doesn't trigger complete load.- Returns:
 - reference to add, never 
null 
 
- 
getImports
public Collection<SModelReference> getImports()
 
 - 
 
 -