Package jetbrains.mps.generator.template
Interface QueryExecutionContext
- 
- All Superinterfaces:
 QueryExecutor
- All Known Implementing Classes:
 DefaultQueryExecutionContext,QueryExecutionContextWithTracing
public interface QueryExecutionContext extends QueryExecutor
XXX this is not a context, rather QueryExecutionFacility/QueryExecutor, utility to provide extra indirection when invoking conditions/rules. It doesn't keep any 'context' information. Note, this facility is relevant to interpreted templates only, generated templates invoke corresponding generated query methods directly. This interface is in API (TemplateExecutionEnvironment gives access to it), although it's not expected clients will use it (there's no need to), and with this in mind, the API is deemed internal and subject to change without any notice and deprecation phase. FIXME get rid of inputNode and TEE where templateContext is available Evgeny Gryaznov, Feb 24, 2010 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<SNode>applyRule(TemplateCreateRootRule rule, TemplateExecutionEnvironment environment)Collection<SNode>applyRule(TemplateReductionRule rule, TemplateContext context)Collection<SNode>applyRule(TemplateRootMappingRule rule, TemplateContext context)booleanapplyRule(TemplateWeavingRule rule, TemplateContext context, SNode outputContextNode)voidexecuteScript(TemplateMappingScript mappingScript, SModel model)SNodegetContextNode(TemplateWeavingRule rule, TemplateContext context)booleanisApplicable(TemplateRuleWithCondition rule, TemplateContext context) 
 - 
 
- 
- 
Method Detail
- 
applyRule
Collection<SNode> applyRule(TemplateReductionRule rule, TemplateContext context) throws GenerationException
- Throws:
 GenerationException
 
- 
isApplicable
boolean isApplicable(@NotNull TemplateRuleWithCondition rule, @NotNull TemplateContext context) throws GenerationFailureException
- Throws:
 GenerationFailureException
 
- 
applyRule
Collection<SNode> applyRule(TemplateRootMappingRule rule, TemplateContext context) throws GenerationException
- Throws:
 GenerationException
 
- 
applyRule
Collection<SNode> applyRule(TemplateCreateRootRule rule, TemplateExecutionEnvironment environment) throws GenerationException
- Throws:
 GenerationException
 
- 
applyRule
boolean applyRule(TemplateWeavingRule rule, TemplateContext context, SNode outputContextNode) throws GenerationException
- Throws:
 GenerationException
 
- 
getContextNode
SNode getContextNode(TemplateWeavingRule rule, TemplateContext context) throws GenerationFailureException
- Throws:
 GenerationFailureException
 
- 
executeScript
void executeScript(TemplateMappingScript mappingScript, SModel model) throws GenerationFailureException
- Throws:
 GenerationFailureException
 
 - 
 
 -