Search in sources :

Example 1 with EnumLiteralDescr

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);
}
Also used : ResourceReference(org.kie.workbench.common.services.refactoring.ResourceReference) EnumLiteralDescr(org.drools.compiler.lang.descr.EnumLiteralDescr)

Aggregations

EnumLiteralDescr (org.drools.compiler.lang.descr.EnumLiteralDescr)1 ResourceReference (org.kie.workbench.common.services.refactoring.ResourceReference)1