Search in sources :

Example 1 with DMNListEvaluator

use of org.kie.dmn.core.ast.DMNListEvaluator in project drools by kiegroup.

the class DMNEvaluatorCompiler method compileList.

private DMNExpressionEvaluator compileList(DMNCompilerContext ctx, DMNModelImpl model, DMNBaseNode node, String listName, org.kie.dmn.model.v1_1.List expression) {
    org.kie.dmn.model.v1_1.List listDef = expression;
    DMNListEvaluator listEval = new DMNListEvaluator(node.getName(), node.getSource(), listDef);
    for (Expression expr : listDef.getExpression()) {
        listEval.addElement(compileExpression(ctx, model, node, listName, expr));
    }
    return listEval;
}
Also used : LiteralExpression(org.kie.dmn.model.v1_1.LiteralExpression) CompiledExpression(org.kie.dmn.feel.lang.CompiledExpression) Expression(org.kie.dmn.model.v1_1.Expression) DMNListEvaluator(org.kie.dmn.core.ast.DMNListEvaluator)

Example 2 with DMNListEvaluator

use of org.kie.dmn.core.ast.DMNListEvaluator in project drools by kiegroup.

the class DMNEvaluatorCompiler method compileList.

private DMNExpressionEvaluator compileList(DMNCompilerContext ctx, DMNModelImpl model, DMNBaseNode node, String listName, org.kie.dmn.model.api.List expression) {
    org.kie.dmn.model.api.List listDef = expression;
    DMNListEvaluator listEval = new DMNListEvaluator(node.getName(), node.getSource(), listDef);
    for (Expression expr : listDef.getExpression()) {
        listEval.addElement(compileExpression(ctx, model, node, listName, expr));
    }
    return listEval;
}
Also used : LiteralExpression(org.kie.dmn.model.api.LiteralExpression) CompiledExpression(org.kie.dmn.feel.lang.CompiledExpression) Expression(org.kie.dmn.model.api.Expression) DMNListEvaluator(org.kie.dmn.core.ast.DMNListEvaluator)

Aggregations

DMNListEvaluator (org.kie.dmn.core.ast.DMNListEvaluator)2 CompiledExpression (org.kie.dmn.feel.lang.CompiledExpression)2 Expression (org.kie.dmn.model.api.Expression)1 LiteralExpression (org.kie.dmn.model.api.LiteralExpression)1 Expression (org.kie.dmn.model.v1_1.Expression)1 LiteralExpression (org.kie.dmn.model.v1_1.LiteralExpression)1