public abstract class AbstractScopingFragment extends AbstractInheritingGeneratorFragment implements IStubGenerating, IStubGenerating.XtendOption
IStubGenerating.XtendOption
IInheriting.Util
Constructor and Description |
---|
AbstractScopingFragment() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDefaultScopeProviderSuperClassName() |
java.lang.String[] |
getExportedPackagesRt(Grammar grammar)
return the exported packages for the runtime bundle
|
protected abstract java.lang.Class<? extends IGlobalScopeProvider> |
getGlobalScopeProvider() |
java.util.Set<Binding> |
getGuiceBindingsRt(Grammar grammar)
return a map containing the contributed guice bindings created in this generator fragment
|
protected abstract java.lang.Class<? extends IScopeProvider> |
getLocalScopeProvider() |
protected java.util.List<java.lang.Object> |
getParameters(Grammar grammar) |
java.lang.String[] |
getRequiredBundlesRt(Grammar grammar)
return the bundles this fragment requires at runtime
|
static java.lang.String |
getScopeProviderName(Grammar grammar,
Naming naming) |
protected java.lang.String |
getScopeProviderSuperClassName(Grammar grammar) |
protected java.lang.String |
getTemplate() |
boolean |
isGenerateStub() |
boolean |
isGenerateStub(Grammar grammar) |
boolean |
isGenerateXtendStub() |
boolean |
isIgnoreCase() |
void |
setGenerateStub(boolean isGenerateStub) |
void |
setGenerateXtendStub(boolean isGenerateXtendStub) |
void |
setIgnoreCase(boolean ignoreCase) |
getSuperClassName, getSuperGrammar, isClassExists, isInheritImplementation, setInheritImplementation
addToPluginXmlRt, addToPluginXmlTests, addToPluginXmlUi, addToStandaloneSetup, generate, getNaming, readFileIntoString, registerNaming, writeStringIntoFile
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, checkConfiguration, generate, getExportedPackagesIde, getExportedPackagesTests, getExportedPackagesUi, getGuiceBindingsUi, getImportedPackagesIde, getImportedPackagesRt, getImportedPackagesTests, getImportedPackagesUi, getRequiredBundlesIde, getRequiredBundlesTests, getRequiredBundlesUi
public static java.lang.String getScopeProviderName(Grammar grammar, Naming naming)
public boolean isGenerateXtendStub()
isGenerateXtendStub
in interface IStubGenerating.XtendOption
IStubGenerating.isGenerateStub()
.public void setGenerateXtendStub(boolean isGenerateXtendStub)
setGenerateXtendStub
in interface IStubGenerating.XtendOption
isGenerateXtendStub
- decide if the fragment should generate stub classes in Xtend instead of Java.
This only has an effect if the generation of stubs is enabled in general
IStubGenerating.setGenerateStub(boolean)
.public boolean isGenerateStub()
isGenerateStub
in interface IStubGenerating
public void setGenerateStub(boolean isGenerateStub)
setGenerateStub
in interface IStubGenerating
public boolean isGenerateStub(Grammar grammar)
public boolean isIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
protected abstract java.lang.Class<? extends IGlobalScopeProvider> getGlobalScopeProvider()
protected abstract java.lang.Class<? extends IScopeProvider> getLocalScopeProvider()
public java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
IGeneratorFragment
getGuiceBindingsRt
in interface IGeneratorFragment
getGuiceBindingsRt
in class DefaultGeneratorFragment
protected java.lang.String getScopeProviderSuperClassName(Grammar grammar)
protected java.lang.String getDefaultScopeProviderSuperClassName()
protected java.util.List<java.lang.Object> getParameters(Grammar grammar)
getParameters
in class AbstractGeneratorFragment
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
protected java.lang.String getTemplate()
getTemplate
in class AbstractGeneratorFragment