Class TemplateRootMappingRuleInterpreted
- java.lang.Object
 - 
- jetbrains.mps.generator.runtime.MapRootRuleBase
 - 
- jetbrains.mps.generator.impl.interpreted.TemplateRootMappingRuleInterpreted
 
 
 
- 
- All Implemented Interfaces:
 TemplateRootMappingRule,TemplateRule,TemplateRuleForConcept,TemplateRuleWithCondition
public final class TemplateRootMappingRuleInterpreted extends MapRootRuleBase implements TemplateRootMappingRule
Evgeny Gryaznov, Nov 30, 2010 
- 
- 
Constructor Summary
Constructors Constructor Description TemplateRootMappingRuleInterpreted(SNode rule) 
- 
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)Default implementation subclasses can rely on, alwaystrue- 
Methods inherited from class jetbrains.mps.generator.runtime.MapRootRuleBase
applyToInheritors, getApplicableConcept, getRuleNode, keepSourceRoot 
- 
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.TemplateRootMappingRule
keepSourceRoot 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRule
getRuleNode 
- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateRuleForConcept
applyToInheritors, getApplicableConcept 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
TemplateRootMappingRuleInterpreted
public TemplateRootMappingRuleInterpreted(SNode rule)
 
 - 
 
- 
Method Detail
- 
isApplicable
public boolean isApplicable(@NotNull TemplateContext context) throws GenerationFailureException
Description copied from class:MapRootRuleBaseDefault implementation subclasses can rely on, alwaystrue- Specified by:
 isApplicablein interfaceTemplateRuleWithCondition- Overrides:
 isApplicablein classMapRootRuleBase- Throws:
 GenerationFailureException
 
- 
apply
@Nullable public Collection<SNode> apply(@NotNull TemplateContext context) throws GenerationException
Description copied from interface:TemplateRootMappingRuleTry to apply rule in the given context- Specified by:
 applyin interfaceTemplateRootMappingRule- 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
 
 - 
 
 -