Package jetbrains.mps.generator.runtime
Class DropRootRuleBase
- java.lang.Object
 - 
- jetbrains.mps.generator.runtime.DropRootRuleBase
 
 
- 
- All Implemented Interfaces:
 TemplateDropRootRule,TemplateRule,TemplateRuleForConcept,TemplateRuleWithCondition
- Direct Known Subclasses:
 TemplateDropRuleInterpreted
public abstract class DropRootRuleBase extends Object implements TemplateDropRootRule
Base implementation ofTemplateDropRootRuleto use as superclass in generated code to facilitate future API changes 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedDropRootRuleBase(SNodeReference ruleNode, SAbstractConcept appConcept) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyToInheritors()SAbstractConceptgetApplicableConcept()SNodeReferencegetRuleNode()booleanisApplicable(TemplateContext context)Subclasses can rely on default implementation to returntrue. 
 - 
 
- 
- 
Constructor Detail
- 
DropRootRuleBase
protected DropRootRuleBase(@NotNull SNodeReference ruleNode, @NotNull SAbstractConcept appConcept)
- Parameters:
 ruleNode- identifies rule for navigation/error reporting purposesappConcept- concept to trigger rule- Since:
 - 3.3
 
 
 - 
 
- 
Method Detail
- 
getRuleNode
@NotNull public final SNodeReference getRuleNode()
- Specified by:
 getRuleNodein interfaceTemplateRule
 
- 
getApplicableConcept
@NotNull public final SAbstractConcept getApplicableConcept()
- Specified by:
 getApplicableConceptin interfaceTemplateRuleForConcept- Returns:
 - concept to trigger this rule
 
 
- 
applyToInheritors
public final boolean applyToInheritors()
- Specified by:
 applyToInheritorsin interfaceTemplateRuleForConcept
 
- 
isApplicable
public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException
Subclasses can rely on default implementation to returntrue.- Specified by:
 isApplicablein interfaceTemplateRuleWithCondition- Throws:
 GenerationException
 
 - 
 
 -