public class XtextAntlrGeneratorFragment extends AbstractAntlrGeneratorFragment
Constructor and Description |
---|
XtextAntlrGeneratorFragment() |
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
Called by the container after configuration so the component can validate
the configuration before invocation.
|
void |
generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
can be used to generate whatever necessary
|
static java.lang.String |
getAntlrTokenFileProviderClassName(Grammar grammar,
Naming naming) |
java.lang.String[] |
getExportedPackagesRt(Grammar grammar)
return the exported packages for the runtime bundle
|
static java.lang.String |
getGrammarFileName(Grammar g,
Naming naming) |
java.util.Set<Binding> |
getGuiceBindingsRt(Grammar grammar)
return a map containing the contributed guice bindings created in this generator fragment
|
java.util.Set<Binding> |
getGuiceBindingsUi(Grammar grammar)
return a map containing the contributed guice bindings for the ui part created in this generator fragment
|
static java.lang.String |
getInternalParserClassName(Grammar g,
Naming naming) |
static java.lang.String |
getLexerClassName(Grammar g,
Naming naming) |
static java.lang.String |
getParserClassName(Grammar g,
Naming naming) |
java.lang.String[] |
getRequiredBundlesRt(Grammar grammar)
return the bundles this fragment requires at runtime
|
addAntlrParam, checkGrammar, containsUnorderedGroup, getAntlrParams, getAntlrTool, getEncoding, getLexerFileNameSuffix, getLineDelimiter, getOptions, getParameters, getParserFileNameSuffix, hasProductionRules, normalizeLineDelimiters, normalizeLineDelimiters, normalizeTokens, setAntlrTool, setOptions, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicatesIfRequired, simplifyUnorderedGroupPredicatesIfRequired, splitLexerClassFile, splitLexerClassFile, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserClassFile, splitParserClassFile, suppressWarnings, suppressWarnings, suppressWarnings, suppressWarnings
addToPluginXmlRt, addToPluginXmlTests, addToPluginXmlUi, addToStandaloneSetup, getNaming, getTemplate, readFileIntoString, registerNaming, writeStringIntoFile
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, generate, getExportedPackagesIde, getExportedPackagesTests, getExportedPackagesUi, getImportedPackagesIde, getImportedPackagesRt, getImportedPackagesTests, getImportedPackagesUi, getRequiredBundlesIde, getRequiredBundlesTests, getRequiredBundlesUi
public void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
generate
in interface IGeneratorFragment
generate
in class AbstractAntlrGeneratorFragment
ctx
- - the execution context to usepublic void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
IGeneratorFragment
checkConfiguration
in interface IGeneratorFragment
checkConfiguration
in class AbstractAntlrGeneratorFragment
issues
- implementors should report configuration issues to this.public java.lang.String[] getExportedPackagesRt(Grammar grammar)
IGeneratorFragment
getExportedPackagesRt
in interface IGeneratorFragment
getExportedPackagesRt
in class DefaultGeneratorFragment
public java.lang.String[] getRequiredBundlesRt(Grammar grammar)
IGeneratorFragment
getRequiredBundlesRt
in interface IGeneratorFragment
getRequiredBundlesRt
in class DefaultGeneratorFragment
public java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
IGeneratorFragment
getGuiceBindingsRt
in interface IGeneratorFragment
getGuiceBindingsRt
in class DefaultGeneratorFragment
public java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
IGeneratorFragment
getGuiceBindingsUi
in interface IGeneratorFragment
getGuiceBindingsUi
in class DefaultGeneratorFragment
public static java.lang.String getAntlrTokenFileProviderClassName(Grammar grammar, Naming naming)
public static java.lang.String getInternalParserClassName(Grammar g, Naming naming)