Class XpandGeneratorJob

  • All Implemented Interfaces:
    IJob

    public class XpandGeneratorJob
    extends AbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
    Job which creates, configures and runs an XPand generator.
    • Constructor Detail

      • 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 Detail

      • 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 class AbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
        Parameters:
        generatorJob - The job to be set up
      • getAdvices

        public List<String> 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

        public String getFileEncoding()
        Gets the file encoding.
        Returns:
        the file encoding
      • setFileEncoding

        public void setFileEncoding​(String fileEncoding)
        Sets the file encoding.
        Parameters:
        fileEncoding - the new file encoding
      • getExpandExpression

        public String 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