Package jetbrains.mps.generator.runtime
Class CreateRootRuleBase
- java.lang.Object
 - 
- jetbrains.mps.generator.runtime.CreateRootRuleBase
 
 
- 
- All Implemented Interfaces:
 TemplateCreateRootRule,TemplateRule,TemplateRuleWithCondition
- Direct Known Subclasses:
 TemplateCreateRootRuleInterpreted
public abstract class CreateRootRuleBase extends Object implements TemplateCreateRootRule
Base implementation ofTemplateCreateRootRuleto use as superclass in generated code to facilitate future API changes 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedCreateRootRuleBase(SNodeReference ruleNode) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SNodeReferencegetRuleNode()booleanisApplicable(TemplateContext context)Subclasses can rely on default implementation to returntrue.- 
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.TemplateCreateRootRule
apply 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CreateRootRuleBase
protected CreateRootRuleBase(@NotNull SNodeReference ruleNode)
 
 - 
 
- 
Method Detail
- 
getRuleNode
@NotNull public SNodeReference getRuleNode()
- Specified by:
 getRuleNodein interfaceTemplateRule
 
- 
isApplicable
public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException
Subclasses can rely on default implementation to returntrue.- Specified by:
 isApplicablein interfaceTemplateRuleWithCondition- Throws:
 GenerationException
 
 - 
 
 -