Search in sources :

Example 1 with AstBeUnless

use of com.developmentontheedge.sql.model.AstBeUnless in project be5 by DevelopmentOnTheEdge.

the class ContextApplier method applyConditions.

private int applyConditions(SimpleNode newTree, int i) {
    AstBeCondition condNode = (AstBeCondition) newTree.child(i);
    boolean correct = checkConditions(condNode);
    if (condNode instanceof AstBeUnless)
        i = setUnlessResult(newTree, i, condNode, correct);
    else if (condNode instanceof AstBeIf)
        i = setIfResult(newTree, i, condNode, correct);
    return i;
}
Also used : AstBeCondition(com.developmentontheedge.sql.model.AstBeCondition) AstBeUnless(com.developmentontheedge.sql.model.AstBeUnless) AstBeIf(com.developmentontheedge.sql.model.AstBeIf)

Aggregations

AstBeCondition (com.developmentontheedge.sql.model.AstBeCondition)1 AstBeIf (com.developmentontheedge.sql.model.AstBeIf)1 AstBeUnless (com.developmentontheedge.sql.model.AstBeUnless)1