Package jetbrains.mps.generator.runtime
Interface NodeWeaveFacility.WeaveContext
- 
- All Known Implementing Classes:
 WeaveContextImpl
- Enclosing interface:
 - NodeWeaveFacility
 
public static interface NodeWeaveFacility.WeaveContext 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SNodegetAnchorNode(SNode outputParent, SNode outputNode)SNodegetContextNode()TemplateContextgetTemplateContext()NOTE: PROVISIONAL API, DO NOT USE. 
 - 
 
- 
- 
Method Detail
- 
getContextNode
@NotNull SNode getContextNode()
- Returns:
 - context node of a weaving rule or macro. Not necessarily the parent nodes get weaved into, as actual parent could be affected by TF.contextNodeQuery query
 
 
- 
getTemplateContext
@NotNull TemplateContext getTemplateContext()
NOTE: PROVISIONAL API, DO NOT USE. INSTEAD, RELY ONNodeWeaveFacility.getTemplateContext(). XXX not sure whether TC is part of WeavingContext or NodeWeaveFacility (and if I care to tell the two, actually. That's why I limit generated code to NWF only, without WeaveContext) 
- 
getAnchorNode
@Nullable SNode getAnchorNode(@NotNull SNode outputParent, @NotNull SNode outputNode) throws GenerationFailureException
- Throws:
 GenerationFailureException
 
 - 
 
 -