Package jetbrains.mps.generator.runtime
Class DropAttributeRuleBase
- java.lang.Object
 - 
- jetbrains.mps.generator.runtime.DropAttributeRuleBase
 
 
- 
- All Implemented Interfaces:
 TemplateDropAttributeRule,TemplateRule,TemplateRuleForConcept,TemplateRuleWithCondition
- Direct Known Subclasses:
 DropAttributeRuleInterpreted
public class DropAttributeRuleBase extends Object implements TemplateDropAttributeRule
Base implementation forTemplateDropAttributeRuleto facilitate API changes. 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedDropAttributeRuleBase(SNodeReference ruleNode, SAbstractConcept appConcept, boolean applyToSubConcepts) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyToInheritors()SAbstractConceptgetApplicableConcept()SNodeReferencegetRuleNode()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) 
 - 
 
- 
- 
Constructor Detail
- 
DropAttributeRuleBase
protected DropAttributeRuleBase(@NotNull SNodeReference ruleNode, @NotNull SAbstractConcept appConcept, boolean applyToSubConcepts)
 
 - 
 
- 
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
Description copied from interface:TemplateRuleWithConditionTell 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)- Specified by:
 isApplicablein interfaceTemplateRuleWithCondition- Throws:
 GenerationException
 
 - 
 
 -