Package jetbrains.mps.generator.impl
Class WeaveContextImpl
- java.lang.Object
 - 
- jetbrains.mps.generator.impl.WeaveContextImpl
 
 
- 
- All Implemented Interfaces:
 NodeWeaveFacility.WeaveContext
public class WeaveContextImpl extends Object implements NodeWeaveFacility.WeaveContext
Context with intention to do minimalistic changes to generator of templates. 
- 
- 
Constructor Summary
Constructors Constructor Description WeaveContextImpl(SNode contextNode, TemplateContext templateContext)WeaveContextImpl(SNode contextNode, TemplateContext templateContext, WeavingWithAnchor delegate) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SNodegetAnchorNode(SNode outputParent, SNode outputNode)SNodegetContextNode()TemplateContextgetTemplateContext()NOTE: PROVISIONAL API, DO NOT USE. 
 - 
 
- 
- 
Constructor Detail
- 
WeaveContextImpl
public WeaveContextImpl(@NotNull SNode contextNode, @NotNull TemplateContext templateContext, WeavingWithAnchor delegate)
 
- 
WeaveContextImpl
public WeaveContextImpl(@NotNull SNode contextNode, @NotNull TemplateContext templateContext)
 
 - 
 
- 
Method Detail
- 
getContextNode
@NotNull public SNode getContextNode()
- Specified by:
 getContextNodein interfaceNodeWeaveFacility.WeaveContext- 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 public TemplateContext getTemplateContext()
Description copied from interface:NodeWeaveFacility.WeaveContextNOTE: 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)- Specified by:
 getTemplateContextin interfaceNodeWeaveFacility.WeaveContext
 
- 
getAnchorNode
@Nullable public SNode getAnchorNode(@NotNull SNode outputParent, @NotNull SNode outputNode) throws GenerationFailureException
- Specified by:
 getAnchorNodein interfaceNodeWeaveFacility.WeaveContext- Throws:
 GenerationFailureException
 
 - 
 
 -