Package jetbrains.mps.generator.impl
Class MapSrcProcessor.MapSrcMacroProcessorInterpreted
- java.lang.Object
 - 
- jetbrains.mps.generator.impl.MapSrcProcessor
 - 
- jetbrains.mps.generator.impl.MapSrcProcessor.MapSrcMacroProcessorInterpreted
 
 
 
- 
- All Implemented Interfaces:
 NodePostProcessor
- Enclosing class:
 - MapSrcProcessor
 
public static class MapSrcProcessor.MapSrcMacroProcessorInterpreted extends MapSrcProcessor
Support for substitute/post-process functions in interpreted templates 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class jetbrains.mps.generator.impl.MapSrcProcessor
MapSrcProcessor.MapSrcMacroProcessorInterpreted 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MapSrcMacroProcessorInterpreted(MapNodeQuery mapNodeQuery, MapPostProcessor postProcessor, SNodeReference mapSrcMacro, SNode outputAnchor, TemplateContext context)MapSrcMacroProcessorInterpreted(MapPostProcessor postProcessor, SNodeReference mapSrcMacro, SNode outputAnchor, TemplateContext context) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostProcess(SNode outputNode)Default implementation does nothingSNodesubstitute()Default implementation returnsMapSrcProcessor.getOutputAnchor()- 
Methods inherited from class jetbrains.mps.generator.impl.MapSrcProcessor
getOutputAnchor, getTemplateContext, getTemplateNode 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MapSrcMacroProcessorInterpreted
public MapSrcMacroProcessorInterpreted(@NotNull MapNodeQuery mapNodeQuery, @Nullable MapPostProcessor postProcessor, @NotNull SNodeReference mapSrcMacro, @NotNull SNode outputAnchor, @NotNull TemplateContext context)
 
- 
MapSrcMacroProcessorInterpreted
public MapSrcMacroProcessorInterpreted(@NotNull MapPostProcessor postProcessor, @NotNull SNodeReference mapSrcMacro, @NotNull SNode outputAnchor, @NotNull TemplateContext context)
 
 - 
 
- 
Method Detail
- 
substitute
@NotNull public SNode substitute() throws GenerationFailureException
Description copied from class:MapSrcProcessorDefault implementation returnsMapSrcProcessor.getOutputAnchor()- Specified by:
 substitutein interfaceNodePostProcessor- Overrides:
 substitutein classMapSrcProcessor- Returns:
 - generally shall supply a new node to replace 
output mode. Shall returnNodePostProcessor.getOutputAnchor()to skip the substitution step. - Throws:
 GenerationFailureException
 
- 
postProcess
public void postProcess(@NotNull SNode outputNode) throws GenerationFailureException
Description copied from class:MapSrcProcessorDefault implementation does nothing- Specified by:
 postProcessin interfaceNodePostProcessor- Overrides:
 postProcessin classMapSrcProcessor- Parameters:
 outputNode- node in output model to process (outcome ofNodePostProcessor.substitute()call, even if it gaveNodePostProcessor.getOutputAnchor()).- Throws:
 GenerationFailureException
 
 - 
 
 -