use of org.drools.compiler.rule.builder.dialect.java.JavaRuleClassBuilder in project drools by kiegroup.
the class LegacyAccumulate method createAllAccumulateClass.
private GeneratedClassWithPackage createAllAccumulateClass(Set<String> imports, String packageName) {
final String allAccumulatesClass = new JavaRuleClassBuilder().buildRule(ruleBuildContext);
final CompilationUnit parsedAccumulateClass = JavaParser.parse(allAccumulatesClass);
return new GeneratedClassWithPackage((ClassOrInterfaceDeclaration) parsedAccumulateClass.getType(0), packageName, imports);
}
Aggregations