Class TemplateReductionRuleInterpreted
- java.lang.Object
 - 
- jetbrains.mps.generator.runtime.ReductionRuleBase
 - 
- jetbrains.mps.generator.impl.interpreted.TemplateReductionRuleInterpreted
 
 
 
- 
- All Implemented Interfaces:
 TemplateReductionRule,TemplateRule,TemplateRuleForConcept,TemplateRuleWithCondition
public class TemplateReductionRuleInterpreted extends ReductionRuleBase implements TemplateReductionRule, TemplateRuleWithCondition
 
- 
- 
Constructor Summary
Constructors Constructor Description TemplateReductionRuleInterpreted(SNode ruleNode) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SNode>apply(TemplateContext context)Try to apply rule in the given contextbooleanisApplicable(TemplateContext context)Subclasses can rely on default implementation to returntrue.- 
Methods inherited from class jetbrains.mps.generator.runtime.ReductionRuleBase
applyToInheritors, getApplicableConcept, getRuleNode 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRule
getRuleNode 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRuleForConcept
applyToInheritors, getApplicableConcept 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
TemplateReductionRuleInterpreted
public TemplateReductionRuleInterpreted(SNode ruleNode)
 
 - 
 
- 
Method Detail
- 
isApplicable
public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException
Description copied from class:ReductionRuleBaseSubclasses can rely on default implementation to returntrue.- Specified by:
 isApplicablein interfaceTemplateRuleWithCondition- Overrides:
 isApplicablein classReductionRuleBase- Throws:
 GenerationException
 
- 
apply
@NotNull public Collection<SNode> apply(@NotNull TemplateContext context) throws GenerationException
Description copied from interface:TemplateReductionRuleTry to apply rule in the given context- Specified by:
 applyin interfaceTemplateReductionRule- Parameters:
 context- execution context- Returns:
 nullto indicate this rule could not do anything to active input node- Throws:
 GenerationException- failure/cancellation/control flow. BothDismissTopMappingRuleExceptionandAbandonRuleInputExceptionexceptions are honoured.
 
 - 
 
 -