use of org.drools.mvelcompiler.ast.ObjectCreationExpressionT in project drools by kiegroup.
the class RHSPhase method visit.
@Override
public TypedExpression visit(ObjectCreationExpr n, Context arg) {
List<TypedExpression> constructorArguments = new ArrayList<>();
for (Expression e : n.getArguments()) {
TypedExpression compiledArgument = e.accept(this, arg);
constructorArguments.add(compiledArgument);
}
return new ObjectCreationExpressionT(constructorArguments, resolveType(n.getType()));
}
Aggregations