Class TemplateSwitchMappingInterpreted
- java.lang.Object
 - 
- jetbrains.mps.generator.impl.interpreted.TemplateSwitchMappingInterpreted
 
 
- 
- All Implemented Interfaces:
 TemplateSwitchMapping
public class TemplateSwitchMappingInterpreted extends Object implements TemplateSwitchMapping
Evgeny Gryaznov, Nov 29, 2010 
- 
- 
Constructor Summary
Constructors Constructor Description TemplateSwitchMappingInterpreted(SNode aSwitch) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SNode>applyDefault(TemplateExecutionEnvironment environment, SNodeReference templateSwitch, String mappingName, TemplateContext context)SNodeReferencegetModifiesSwitch()Iterable<TemplateReductionRule>getReductionRules()SNodeReferencegetSwitchNode()voidprocessNull(TemplateExecutionEnvironment environment, SNodeReference templateSwitch, TemplateContext context) 
 - 
 
- 
- 
Constructor Detail
- 
TemplateSwitchMappingInterpreted
public TemplateSwitchMappingInterpreted(SNode aSwitch)
 
 - 
 
- 
Method Detail
- 
getSwitchNode
public SNodeReference getSwitchNode()
- Specified by:
 getSwitchNodein interfaceTemplateSwitchMapping
 
- 
getModifiesSwitch
public SNodeReference getModifiesSwitch()
- Specified by:
 getModifiesSwitchin interfaceTemplateSwitchMapping
 
- 
getReductionRules
public Iterable<TemplateReductionRule> getReductionRules()
- Specified by:
 getReductionRulesin interfaceTemplateSwitchMapping
 
- 
applyDefault
public Collection<SNode> applyDefault(TemplateExecutionEnvironment environment, SNodeReference templateSwitch, String mappingName, TemplateContext context) throws GenerationException
- Specified by:
 applyDefaultin interfaceTemplateSwitchMapping- Throws:
 GenerationException
 
- 
processNull
public void processNull(TemplateExecutionEnvironment environment, SNodeReference templateSwitch, TemplateContext context)
- Specified by:
 processNullin interfaceTemplateSwitchMapping
 
 - 
 
 -