class KiePMMLRegressionTableClassificationFactory {

    static void setConstructor(final ConstructorDeclaration constructorDeclaration,
                               final SimpleName generatedClassName, final String targetField,
                               final REGRESSION_NORMALIZATION_METHOD regressionNormalizationMethod,
                               final OP_TYPE opType) {
        constructorDeclaration.setName(generatedClassName);
        final BlockStmt body = constructorDeclaration.getBody();
        CommonCodegenUtils.setAssignExpressionValue(body, "targetField", new StringLiteralExpr(targetField));
        CommonCodegenUtils.setAssignExpressionValue(body, "regressionNormalizationMethod",
                                                    new NameExpr(regressionNormalizationMethod.getClass().getSimpleName() + "." + regressionNormalizationMethod.name()));
        if (opType != null) {
            CommonCodegenUtils.setAssignExpressionValue(body, "opType",
                                                        new NameExpr(opType.getClass().getSimpleName() + "." + opType.name()));
        }
    }

    private  KiePMMLRegressionTableClassificationFactory();

}