Package jetbrains.mps.generator.runtime
Interface TemplateRootMappingRule
- 
- All Superinterfaces:
 TemplateRule,TemplateRuleForConcept,TemplateRuleWithCondition
- All Known Implementing Classes:
 MapRootRuleBase,TemplateRootMappingRuleInterpreted
public interface TemplateRootMappingRule extends TemplateRuleWithCondition, TemplateRuleForConcept
Rule for an input node (not necessarily model root) to get transformed into a new root node(s) Evgeny Gryaznov, 10/27/10 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<SNode>apply(TemplateContext context)Try to apply rule in the given contextbooleankeepSourceRoot()- 
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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
apply
@Nullable Collection<SNode> apply(@NotNull TemplateContext context) throws GenerationException
Try to apply rule in the given context- Parameters:
 context- execution context- Returns:
 nullif this rule could not process input, collection of new root nodes otherwise- Throws:
 GenerationException- report a failure/cancellation. Note,DismissTopMappingRuleExceptionnorAbandonRuleInputExceptionare not expected to come from this rule- Since:
 - 3.3
 
 
- 
keepSourceRoot
boolean keepSourceRoot()
 
 - 
 
 -