Class AbstractHenshinRefactoring

    • Constructor Detail

      • AbstractHenshinRefactoring

        public AbstractHenshinRefactoring()
    • Method Detail

      • getTransformationResource

        protected abstract CMLResource getTransformationResource()
        The root resource on which the refactoring has been started might not be the resource that has to be transformed (reference). Implement this method to resolve the resource that has to be transformed by Henshin.
        Returns:
        the CML resource that shall be transformed
      • getHenshinTransformationFilename

        protected abstract java.lang.String getHenshinTransformationFilename()
        Method has to be implemented to provide the name of the Henshin transformation file.
        Returns:
        Name of the Henshin transformation file.
      • getTransformationUnitName

        protected abstract java.lang.String getTransformationUnitName()
        Method has to be implemented to provide the transformation unit name of the henshin transformation
        Returns:
        The Henshin transformation unit name
      • setUnitParameters

        protected void setUnitParameters​(org.eclipse.emf.henshin.interpreter.UnitApplication refactoringUnit)
        Override this method to provide the needed parameters for the given henshin transformation
        Parameters:
        refactoringUnit - The Henshin transformation unit.
      • postProcessing

        protected void postProcessing​(CMLResource resource)
        Override this method in case you want execute some post-processing after the Henshin transformation
        Parameters:
        resource - The resource already transformed by Henshin.
      • throwTransformationError

        protected void throwTransformationError()
        Override this method to provide refactoring-specific error message.