org.eclipse.xtext.generator
Class LanguageConfig
java.lang.Object
org.eclipse.xtext.generator.CompositeGeneratorFragment
org.eclipse.xtext.generator.LanguageConfig
- All Implemented Interfaces:
- IGeneratorFragment, NamingAware
public class LanguageConfig
- extends CompositeGeneratorFragment
- Author:
- Sven Efftinge - Initial contribution and API
- This class is not intended to be subclassed by clients.
- This class is not intended to be subclassed by clients.
Methods inherited from class org.eclipse.xtext.generator.CompositeGeneratorFragment |
addFragment, addFragments, addLog, addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, addWarn, getExportedPackagesRt, getExportedPackagesUi, getGuiceBindingsRt, getGuiceBindingsUi, getImportedPackagesRt, getImportedPackagesUi, getRequiredBundlesRt, getRequiredBundlesUi, registerNaming |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LanguageConfig
public LanguageConfig()
setForcedResourceSet
public void setForcedResourceSet(org.eclipse.emf.ecore.resource.ResourceSet forcedResourceSet)
- Since:
- 2.1
getForcedResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getForcedResourceSet()
- Since:
- 2.1
addLoadedResource
public void addLoadedResource(java.lang.String uri)
- Since:
- 2.1
getLoadedResources
public java.util.List<java.lang.String> getLoadedResources()
- Since:
- 2.1
generate
public void generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
- Description copied from interface:
IGeneratorFragment
- can be used to generate whatever necessary
- Specified by:
generate
in interface IGeneratorFragment
- Overrides:
generate
in class CompositeGeneratorFragment
ctx
- - the execution context to use
checkConfiguration
public void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
- Description copied from interface:
IGeneratorFragment
- Called by the container after configuration so the component can validate
the configuration before invocation.
- Specified by:
checkConfiguration
in interface IGeneratorFragment
- Overrides:
checkConfiguration
in class CompositeGeneratorFragment
- Parameters:
issues
- implementors should report configuration issues to this.
isCheckFileExtension
protected boolean isCheckFileExtension()
setFileExtensions
public void setFileExtensions(java.lang.String fileExtensions)
getFileExtensions
public java.util.List<java.lang.String> getFileExtensions(Grammar g)
initialize
public void initialize(boolean isUi)
setUri
public void setUri(java.lang.String uri)
getGrammar
public Grammar getGrammar()
- Returns:
Grammar