use of org.drools.compiler.rule.builder.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 = parse(allAccumulatesClass);
return new GeneratedClassWithPackage((ClassOrInterfaceDeclaration) parsedAccumulateClass.getType(0), packageName, imports, Collections.emptyList());
}
Aggregations