EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.production
Interface IProductionContributor

All Known Implementing Classes:
JetProductionContributor

public interface IProductionContributor

A production contributor.
Typically handles a specific platform production code.


Method Summary
 boolean compileTemplate(String generatedTemplatePath_p, PatternHandler.PatternData patternData_p)
          Compile given template, if applicable.
 Couple<StringBuilder,StringBuilder> createPatternMatchingTemplates(PatternHandler.PatternData patternData_p, List<ParameterRelation> parameters_p)
          Create pre/post pattern matching templates.
 void fillGenerateHeader(PatternHandler.PatternData patternData_p, AnnotationHandler handler_p)
          Fill, if applicable, generateHeader method of the pattern, if it does not exist or is empty.
 

Method Detail

createPatternMatchingTemplates

Couple<StringBuilder,StringBuilder> createPatternMatchingTemplates(PatternHandler.PatternData patternData_p,
                                                                   List<ParameterRelation> parameters_p)
Create pre/post pattern matching templates.
Those are supposed to be produced in the generated templates folder.
Their physical form depends on the template engine used (as for the file extension for instance).

Parameters:
patternData_p - The structure containing most of the pattern required data for generation.
parameters_p - The fully resolved list of parameters (including parent hierarchy) for considered pattern.
Returns:
A couple of (pre-matching, post-matching) StringBuilder containing resulting template code, null if there is no such content.

compileTemplate

boolean compileTemplate(String generatedTemplatePath_p,
                        PatternHandler.PatternData patternData_p)
                        throws Exception
Compile given template, if applicable.

Parameters:
generatedTemplatePath_p -
patternData_p -
Returns:
Throws:
Exception

fillGenerateHeader

void fillGenerateHeader(PatternHandler.PatternData patternData_p,
                        AnnotationHandler handler_p)
                        throws Exception
Fill, if applicable, generateHeader method of the pattern, if it does not exist or is empty.
Given content should ensure pattern compilation phase, whether this lead to a valid status or not.
The user will then be able to choose a more convenient content.

Parameters:
patternData_p -
handler_p - A usable annotation handler, null if none.
Throws:
Exception

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.