Search in sources :

Example 1 with DoStmtT

use of org.drools.mvelcompiler.ast.DoStmtT in project drools by kiegroup.

the class StatementVisitor method visit.

@Override
public TypedExpression visit(DoStmt n, Void arg) {
    TypedExpression typedCondition = new RHSPhase(mvelCompilerContext).invoke(n.getCondition());
    TypedExpression typedThen = n.getBody().accept(this, arg);
    return new DoStmtT(typedCondition, typedThen);
}
Also used : DoStmtT(org.drools.mvelcompiler.ast.DoStmtT) UnalteredTypedExpression(org.drools.mvelcompiler.ast.UnalteredTypedExpression) TypedExpression(org.drools.mvelcompiler.ast.TypedExpression)

Aggregations

DoStmtT (org.drools.mvelcompiler.ast.DoStmtT)1 TypedExpression (org.drools.mvelcompiler.ast.TypedExpression)1 UnalteredTypedExpression (org.drools.mvelcompiler.ast.UnalteredTypedExpression)1