use of org.drools.compiler.lang.descr.EnumLiteralDescr in project kie-wb-common by kiegroup.
the class PackageDescrIndexVisitor method visit.
protected void visit(final EnumDeclarationDescr descr) {
String typeName = getPackagePrefix() + descr.getFullTypeName();
ResourceReference enumLocalRef = addResourceReference(typeName, ResourceType.DRL_ENUM);
for (EnumLiteralDescr enumLitDescr : descr.getLiterals()) {
enumLocalRef.addPartReference(enumLitDescr.getName(), PartType.DRL_ENUM_VAL);
visitAnnos(enumLitDescr);
}
visitAnnos(descr);
}
Aggregations