use of org.drools.impact.analysis.parser.impl.PackageParser in project drools by kiegroup.
the class ImpactModelBuilderImpl method buildRules.
protected void buildRules(Collection<CompositePackageDescr> packages) {
if (hasErrors()) {
// if Error while generating pojo do not try compile rule as they very likely depends hence fail too.
return;
}
for (CompositePackageDescr packageDescr : packages) {
setAssetFilter(packageDescr.getFilter());
PackageRegistry pkgRegistry = getPackageRegistry(packageDescr.getNamespace());
PackageModel packageModel = getPackageModel(packageDescr, pkgRegistry, packageDescr.getName());
PackageModel.initPackageModel(this, pkgRegistry.getPackage(), pkgRegistry.getTypeResolver(), packageDescr, packageModel);
analysisModel.addPackage(new PackageParser(this, packageModel, packageDescr, pkgRegistry).parse());
}
}
Aggregations