Package jetbrains.mps.generator.runtime
Interface TemplateRuleWithCondition
- 
- All Superinterfaces:
 TemplateRule
- All Known Subinterfaces:
 ReferenceReductionRule,TemplateCreateRootRule,TemplateDropAttributeRule,TemplateDropRootRule,TemplateRootMappingRule,TemplateWeavingRule
- All Known Implementing Classes:
 CreateRootRuleBase,DropAttributeRuleBase,DropAttributeRuleInterpreted,DropRootRuleBase,MapRootRuleBase,ReferenceReductionRuleBase,RefReductionRuleInterpreted,TemplateCreateRootRuleInterpreted,TemplateDropRuleInterpreted,TemplateReductionRuleInterpreted,TemplateRootMappingRuleInterpreted,TemplateWeavingRuleInterpreted,WeaveRuleBase
public interface TemplateRuleWithCondition extends TemplateRule
Evgeny Gryaznov, 12/7/10 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisApplicable(TemplateContext context)Tell whether rule can be applied in the context FIXME shall throw GenerationFailureException (neither Dismiss/Abandon nor Cancel could not get thrown from within) but has to re-generate generated generators that implement this method (either with narrowed throws or without any at all)- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRule
getRuleNode 
 - 
 
 - 
 
- 
- 
Method Detail
- 
isApplicable
boolean isApplicable(@NotNull TemplateContext context) throws GenerationException
Tell whether rule can be applied in the context FIXME shall throw GenerationFailureException (neither Dismiss/Abandon nor Cancel could not get thrown from within) but has to re-generate generated generators that implement this method (either with narrowed throws or without any at all)- Throws:
 GenerationException- Since:
 - 3.3
 
 
 - 
 
 -