use of org.drools.modelcompiler.builder.generator.declaredtype.generator.GeneratedConstructor in project drools by kiegroup.
the class EnumGenerator method createConstructor.
private void createConstructor(EnumDeclarationDescr enumDeclarationDescr) {
List<FieldDefinition> enumFields = enumDeclarationDescr.getFields().values().stream().map(DescrFieldDefinition::new).collect(Collectors.toList());
GeneratedConstructor fullArgumentConstructor = GeneratedConstructor.factoryEnum(enumDeclaration, enumFields);
fullArgumentConstructor.generateConstructor(Collections.emptyList(), Collections.emptyList());
}
Aggregations