@Test(expected = KiePMMLException.class) public void getDerivedFieldMethodDeclarationWithoutExpression() { DerivedFieldFunctionUtils.getDerivedFieldMethodDeclaration(new DerivedField(), new AtomicInteger()); }
static MethodDeclaration getDerivedFieldMethodDeclaration(final DerivedField derivedField, final AtomicInteger arityCounter) { final Expression expression = derivedField.getExpression(); if (expression != null) { return getExpressionMethodDeclaration(expression, derivedField.getDataType(), arityCounter); } else { throw new KiePMMLException("Derived field without Expression are not supported, yet"); } }
DerivedFieldFunctionUtils { static MethodDeclaration getDerivedFieldMethodDeclaration(final DerivedField derivedField, final AtomicInteger arityCounter) { final Expression expression = derivedField.getExpression(); if (expression != null) { return getExpressionMethodDeclaration(expression, derivedField.getDataType(), arityCounter); } else { throw new KiePMMLException("Derived field without Expression are not supported, yet"); } } }
DerivedFieldFunctionUtils { static MethodDeclaration getDerivedFieldMethodDeclaration(final DerivedField derivedField, final AtomicInteger arityCounter) { final Expression expression = derivedField.getExpression(); if (expression != null) { return getExpressionMethodDeclaration(expression, derivedField.getDataType(), arityCounter); } else { throw new KiePMMLException("Derived field without Expression are not supported, yet"); } } private  DerivedFieldFunctionUtils(); }
DerivedFieldFunctionUtils { static MethodDeclaration getDerivedFieldMethodDeclaration(final DerivedField derivedField, final AtomicInteger arityCounter) { final Expression expression = derivedField.getExpression(); if (expression != null) { return getExpressionMethodDeclaration(expression, derivedField.getDataType(), arityCounter); } else { throw new KiePMMLException("Derived field without Expression are not supported, yet"); } } private  DerivedFieldFunctionUtils();  }
DerivedFieldFunctionUtils { static MethodDeclaration getDerivedFieldMethodDeclaration(final DerivedField derivedField, final AtomicInteger arityCounter) { final Expression expression = derivedField.getExpression(); if (expression != null) { return getExpressionMethodDeclaration(expression, derivedField.getDataType(), arityCounter); } else { throw new KiePMMLException("Derived field without Expression are not supported, yet"); } } private  DerivedFieldFunctionUtils();   }