Package de.uka.ipd.sdq.workflow.mdsd.oaw
Class XpandGeneratorJob
java.lang.Object
de.uka.ipd.sdq.workflow.mdsd.oaw.AbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
de.uka.ipd.sdq.workflow.mdsd.oaw.XpandGeneratorJob
- All Implemented Interfaces:
IJob
Job which creates, configures and runs an XPand generator.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.workflow.mdsd.oaw.AbstractOAWWorkflowJobBridge
oawJob
-
Constructor Summary
ConstructorDescriptionXpandGeneratorJob
(HashMap<String, Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression) Creates a new XPand generator job without global variables.XpandGeneratorJob
(HashMap<String, Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression, org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.GlobalVarDef[] globalVarDefs) Creates a new XPand generator job. -
Method Summary
Modifier and TypeMethodDescriptionGets the advices.Gets the expand expression.Gets the file encoding.boolean
Checks if is beautify code.boolean
Checks if is check protected regions.void
setBeautifyCode
(boolean beautifyCode) Sets the beautify code.void
setCheckProtectedRegions
(boolean checkProtectedRegions) Sets the check protected regions.void
setFileEncoding
(String fileEncoding) Sets the file encoding.protected void
setupOAWJob
(org.eclipse.xpand2.Generator generatorJob) Template method in which hiers can add logic to configure their specific oAW jobs.Methods inherited from class de.uka.ipd.sdq.workflow.mdsd.oaw.AbstractOAWWorkflowJobBridge
cleanup, execute, getName, setupContext
-
Constructor Details
-
XpandGeneratorJob
public XpandGeneratorJob(HashMap<String, Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression, org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.GlobalVarDef[] globalVarDefs) Creates a new XPand generator job.- Parameters:
slotContents
- Slots and their content.ePackages
- EMF Meta-models which can be used by the generator.outlets
- Outlets.expandExpression
- Initial generation expression.globalVarDefs
- Definitions for global Variables.
-
XpandGeneratorJob
public XpandGeneratorJob(HashMap<String, Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression) Creates a new XPand generator job without global variables.- Parameters:
slotContents
- Slots and their content.ePackages
- EMF Meta-models which can be used by the generator.outlets
- Outlets.expandExpression
- Initial generation expression.
-
-
Method Details
-
setupOAWJob
protected void setupOAWJob(org.eclipse.xpand2.Generator generatorJob) Description copied from class:AbstractOAWWorkflowJobBridge
Template method in which hiers can add logic to configure their specific oAW jobs.- Specified by:
setupOAWJob
in classAbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
- Parameters:
generatorJob
- The job to be set up
-
getAdvices
Gets the advices.- Returns:
- the advices
-
isCheckProtectedRegions
public boolean isCheckProtectedRegions()Checks if is check protected regions.- Returns:
- true, if is check protected regions
-
setCheckProtectedRegions
public void setCheckProtectedRegions(boolean checkProtectedRegions) Sets the check protected regions.- Parameters:
checkProtectedRegions
- the new check protected regions
-
getFileEncoding
Gets the file encoding.- Returns:
- the file encoding
-
setFileEncoding
Sets the file encoding.- Parameters:
fileEncoding
- the new file encoding
-
getExpandExpression
Gets the expand expression.- Returns:
- the expand expression
-
isBeautifyCode
public boolean isBeautifyCode()Checks if is beautify code.- Returns:
- true, if is beautify code
-
setBeautifyCode
public void setBeautifyCode(boolean beautifyCode) Sets the beautify code.- Parameters:
beautifyCode
- the new beautify code
-