use of org.drools.mvelcompiler.ast.VariableDeclaratorTExpr in project drools by kiegroup.
the class LHSPhase method visit.
@Override
public TypedExpression visit(AssignExpr n, Void arg) {
logPhase("AssignExpr {}", n);
TypedExpression target = n.getTarget().accept(this, arg);
Optional<TypedExpression> bigDecimalConversion = withBigDecimalConversion(n, target, rhsOrError());
if (bigDecimalConversion.isPresent()) {
return bigDecimalConversion.get();
}
if (target instanceof FieldToAccessorTExpr || target instanceof VariableDeclaratorTExpr || target instanceof MapPutExprT) {
return target;
}
return new AssignExprT(n.getOperator(), target, rhsOrNull());
}
Aggregations