Package jetbrains.mps.generator.template
Class ReductionRuleQueryContext
- java.lang.Object
 - 
- jetbrains.mps.generator.template.TemplateQueryContext
 - 
- jetbrains.mps.generator.template.TemplateQueryContextWithRule
 - 
- jetbrains.mps.generator.template.BaseMappingRuleContext
 - 
- jetbrains.mps.generator.template.ReductionRuleQueryContext
 
 
 
 
 
- 
public class ReductionRuleQueryContext extends BaseMappingRuleContext
This context is for reduction rules. Ensures rule condition could access parameters from template context. This is vital for template switches that may declare parameters and have nested ReductionRules with conditions that access actual arguments supplied for the switch. It extends BaseMappingRuleContext (not TemplateQueryContextWithRule directly) because a lot of code (QueriesGenerated class) expects BaseMappingRuleContext in their baseMappingRule_xxx_checkCondition()- Since:
 - 3.1
 
 
- 
- 
Field Summary
- 
Fields inherited from class jetbrains.mps.generator.template.TemplateQueryContext
myContext 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ReductionRuleQueryContext(TemplateContext templateContext, SNodeReference ruleNodeRef) 
- 
Method Summary
- 
Methods inherited from class jetbrains.mps.generator.template.TemplateQueryContextWithRule
getRuleNode 
- 
Methods inherited from class jetbrains.mps.generator.template.TemplateQueryContext
createIndexedName, createUniqueName, getAllOutputNodesByInputNodeAndMappingLabel, getCopiedOutputNodeForInputNode, getGenerationParameter, getGenerator, getInputModel, getInputNode, getNode, getOriginalCopiedInputNode, getOriginalInputModel, getOutputModel, getOutputNode, getOutputNodeByInputNodeAndMappingLabel, getOutputNodeByMappingLabel, getPatternVariable, getPreviousInputNodeByMappingLabel, getSessionObject, getStepObject, getTemplateNodeRef, getTemplateReference, getTransientObject, getVariable, putSessionObject, putStepObject, putTransientObject, registerMappingLabel, showErrorMessage, showInformationMessage, showWarningMessage 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ReductionRuleQueryContext
public ReductionRuleQueryContext(@NotNull TemplateContext templateContext, @NotNull SNodeReference ruleNodeRef)
 
 - 
 
 -