use of org.drools.mvelcompiler.ast.SwitchStmtT in project drools by kiegroup.
the class StatementVisitor method visit.
@Override
public TypedExpression visit(SwitchStmt n, Void arg) {
TypedExpression typedSelector = new RHSPhase(mvelCompilerContext).invoke(n.getSelector());
List<TypedExpression> typedEntries = n.getEntries().stream().map(e -> e.accept(this, arg)).collect(Collectors.toList());
return new SwitchStmtT(typedSelector, typedEntries);
}
Aggregations