public abstract class AbstractAntlrXtendGeneratorFragment extends AbstractAntlrGeneratorFragment
Constructor and Description |
---|
AbstractAntlrXtendGeneratorFragment() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLocalBindings(com.google.inject.Binder binder) |
protected abstract void |
addToPluginXmlRt(Grammar grammar,
java.util.List<java.lang.Object> parameters,
Xtend2ExecutionContext ctx) |
void |
addToPluginXmlRt(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the runtime bundle.
|
protected abstract void |
addToPluginXmlTests(Grammar grammar,
java.util.List<java.lang.Object> parameters,
Xtend2ExecutionContext ctx) |
void |
addToPluginXmlTests(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the tests bundle.
|
protected abstract void |
addToPluginXmlUi(Grammar grammar,
java.util.List<java.lang.Object> parameters,
Xtend2ExecutionContext ctx) |
void |
addToPluginXmlUi(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the ui bundle.
|
protected abstract void |
addToStandaloneSetup(Grammar grammar,
java.util.List<java.lang.Object> parameters,
Xtend2ExecutionContext ctx) |
void |
addToStandaloneSetup(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the generated 'public void register(Injector injector)'-method
|
protected com.google.inject.Module |
createModule(Grammar grammar) |
protected abstract void |
generate(Grammar grammar,
java.util.List<java.lang.Object> parameters,
Xtend2ExecutionContext ctx) |
void |
generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
can be used to generate whatever necessary
|
addAntlrParam, checkConfiguration, checkGrammar, containsUnorderedGroup, getAntlrParams, getAntlrTool, getCodeQualityHelper, getEncoding, getLexerFileNameSuffix, getLineDelimiter, getOptions, getParameters, getParserFileNameSuffix, hasParameterizedRules, hasProductionRules, improveCodeQuality, normalizeLineDelimiters, normalizeLineDelimiters, normalizeTokens, setAntlrTool, setCodeQualityHelper, setOptions, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicatesIfRequired, simplifyUnorderedGroupPredicatesIfRequired, splitLexerClassFile, splitLexerClassFile, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserClassFile, splitParserClassFile, suppressWarnings, suppressWarnings, suppressWarnings, suppressWarnings
getNaming, getTemplate, readFileIntoString, registerNaming, writeStringIntoFile
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, generate, getExportedPackagesIde, getExportedPackagesRt, getExportedPackagesTests, getExportedPackagesUi, getGuiceBindingsRt, getGuiceBindingsUi, getImportedPackagesIde, getImportedPackagesRt, getImportedPackagesTests, getImportedPackagesUi, getRequiredBundlesIde, getRequiredBundlesRt, getRequiredBundlesTests, getRequiredBundlesUi
protected com.google.inject.Module createModule(Grammar grammar)
protected void addLocalBindings(com.google.inject.Binder binder)
public void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
generate
in interface IGeneratorFragment
generate
in class AbstractAntlrGeneratorFragment
ctx
- - the execution context to useprotected abstract void generate(Grammar grammar, java.util.List<java.lang.Object> parameters, Xtend2ExecutionContext ctx)
public void addToPluginXmlRt(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToPluginXmlRt
in interface IGeneratorFragment
addToPluginXmlRt
in class AbstractGeneratorFragment
ctx
- - the execution context to use (the plugin.xml file is already opened)protected abstract void addToPluginXmlRt(Grammar grammar, java.util.List<java.lang.Object> parameters, Xtend2ExecutionContext ctx)
public void addToPluginXmlUi(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToPluginXmlUi
in interface IGeneratorFragment
addToPluginXmlUi
in class AbstractGeneratorFragment
ctx
- - the execution context to use (the plugin.xml file is already opened)protected abstract void addToPluginXmlUi(Grammar grammar, java.util.List<java.lang.Object> parameters, Xtend2ExecutionContext ctx)
public void addToPluginXmlTests(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragmentExtension
addToPluginXmlTests
in interface IGeneratorFragmentExtension
addToPluginXmlTests
in class AbstractGeneratorFragment
ctx
- - the execution context to use (the plugin.xml file is already opened)protected abstract void addToPluginXmlTests(Grammar grammar, java.util.List<java.lang.Object> parameters, Xtend2ExecutionContext ctx)
public void addToStandaloneSetup(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToStandaloneSetup
in interface IGeneratorFragment
addToStandaloneSetup
in class AbstractGeneratorFragment
ctx
- - the execution context to use (the file is already opened, content goes into the register method)protected abstract void addToStandaloneSetup(Grammar grammar, java.util.List<java.lang.Object> parameters, Xtend2ExecutionContext ctx)