Class GeneratedFile<L extends ICompilationUnit>
java.lang.Object
org.palladiosimulator.protocom.lang.GeneratedFile<L>
- All Implemented Interfaces:
ICompilationUnit
- Direct Known Subclasses:
BuildProperties
,Classpath
,JCompilationUnit
,JeeClasspath
,JeeComponentFile
,JeeDeploymentDescriptor
,JeeEjbDescriptor
,JeeFacetCore
,JeeGlassfishEjbDescriptor
,JeeManifest
,JeePreferences
,JeeReadMe
,JeeSettings
,JseManifest
,PluginXml
,TestPlan
public abstract class GeneratedFile<L extends ICompilationUnit>
extends Object
implements ICompilationUnit
Abstract class representing generated files.
Generic type defines the common interface for language and provider classes.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
injector
@Inject protected com.google.inject.Injector injector -
fsa
@Inject protected org.eclipse.xtext.generator.AbstractFileSystemAccess2 fsaFile System Access used for storing this file. -
provider
Provider for this compilation unit. Providers need to implement the language interface, since these are used for delegation. TODO: Add (Xtend) annotations which generate the boilerplate code for provider delegation. e.g. @Provided
-
-
Constructor Details
-
GeneratedFile
public GeneratedFile()
-
-
Method Details
-
filePath
Description copied from interface:ICompilationUnit
Path and name of the generated file.- Specified by:
filePath
in interfaceICompilationUnit
-
projectName
- Specified by:
projectName
in interfaceICompilationUnit
-
createFor
Inject the provider for this generated file. -
generate
Generate the source code for this compilation unit. -
store
public void store()Store the generated file using Xtext/Xtend file system access.
-