Package jetbrains.mps.generator.runtime
Interface TemplateWeavingRule
- 
- All Superinterfaces:
 TemplateRule,TemplateRuleForConcept,TemplateRuleWithCondition,WeavingWithAnchor
- All Known Implementing Classes:
 TemplateWeavingRuleInterpreted,WeaveRuleBase
public interface TemplateWeavingRule extends TemplateRuleWithCondition, TemplateRuleForConcept, WeavingWithAnchor
Evgeny Gryaznov, Nov 29, 2010 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapply(TemplateExecutionEnvironment environment, TemplateContext context, SNode outputContextNode)SNodegetContextNode(TemplateExecutionEnvironment environment, TemplateContext context)FIXME what's the point to have getContextNode here if all we do is check it's from output model (WeavingProcessor#checkContext) and pass to apply() then.- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRule
getRuleNode 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRuleForConcept
applyToInheritors, getApplicableConcept 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRuleWithCondition
isApplicable 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.WeavingWithAnchor
getAnchorNode 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getContextNode
@NotNull SNode getContextNode(TemplateExecutionEnvironment environment, TemplateContext context) throws GenerationFailureException
FIXME what's the point to have getContextNode here if all we do is check it's from output model (WeavingProcessor#checkContext) and pass to apply() then.- Returns:
 - node in output model to host weaved nodes
 - Throws:
 GenerationFailureException
 
- 
apply
boolean apply(TemplateExecutionEnvironment environment, TemplateContext context, SNode outputContextNode) throws GenerationException
- Throws:
 GenerationException
 
 - 
 
 -