Search in sources :

Example 1 with WhileStmtT

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

the class StatementVisitor method visit.

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

Aggregations

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