/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { InvalidOperationException } from "./InvalidOperationException";
import { Base, markType } from "./type";
export class FilterExpressionVisitor extends Base {
    a(a) {
        if (a == null) {
            throw new InvalidOperationException(1, "Expected an expression but found none");
        }
        if (a.isOperation) {
            this.d(a);
        }
        else if (a.isFunction) {
            this.b(a);
        }
        else if (a.isLiteral) {
            this.c(a);
        }
        else if (a.isPropertyReference) {
            this.e(a);
        }
    }
    d(a) {
        if (a.left != null) {
            this.a(a.left);
        }
        if (a.right != null) {
            this.a(a.right);
        }
    }
    b(a) {
        for (let b = 0; b < a.functionArguments.i.count; b++) {
            this.a(a.functionArguments.i.item(b));
        }
    }
    c(a) {
    }
    e(a) {
    }
}
FilterExpressionVisitor.$t = markType(FilterExpressionVisitor, 'FilterExpressionVisitor');
//# sourceMappingURL=FilterExpressionVisitor.js.map